A really simple shell script question. I have a file with something like this:
var "aaaaa"
var "bbbbb"
...
Now, how can I assign a quoted string to a variable? This is what I have (but I miss the destination part ...):
while read line
do
echo $line | cut -d" " -f3
done
which prints what I want ... how to save it in a variable?
thank
source
share