Dear Pascal,
On 12/13/06, Pascal Nunes <pascal dot nunes at gmail dot com> wrote:
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.
Can anyone suggest a method to save these values into multiple variables?
Is there any better method to do this?
sed and/or awk is better for this kind of stuff.
Please try for more details.
info sed info awk
- pascal.
With regards,