Sometime on Dec 13, PN cobbled together some glyphs to say:
I am writing a shell script where I retrive values from a text file using cut. I want to save these into variables.
The script is something like this...
grep searchtext file | cut -f 1,3,7,8
I want to save the values returned by cut into 4 different variables.
This works:
read a b c d <<EOF $( grep searchtext file | cut -f 1,3,7,8 ) EOF