13

for loop with 2 variables

view full story
linux-howto

http://www.unix.com – i am having a file contants as below Quote: sam 1234 sem 4568 san 7894 my requirement is Code: for file in `awk -F "," '{print $8,$9}'` <temp.txt echo "$file" echo "$file">test.txt a=`awk -F "," '{print $1}' `<test.txt b=`awk -F "," '{print $2}' `<test.txt but script reads Quote: $file=sam , i want both the vales for further execution (HowTos)