PDA

View Full Version : [SOLVED] Bash variable multiple lines



dragos2
April 30th, 2010, 10:04 AM
I have this script:



a=awk'{print $8}' f1.txt


How can I make it store lines in $a ? In the way above it creates one big line.

iponeverything
April 30th, 2010, 10:18 AM
http://stackoverflow.com/questions/613572/capturing-multiple-line-output-to-a-bash-variable

dragos2
April 30th, 2010, 10:27 AM
Thanks.