5

problem handling lov in FOR loop

view full story
linux-howto

http://www.unix.com – Hi all, i am trying to process a list of values in FILE like this: aaa:bbb ccc:ddd eee:fff With the following logic: Code: for INFO in FILE do export F1=`cut -f1,3,5,7 -d":" < FILE` export F2=`cut -f2,3,5,7 -d":" < FILE`   ssh $F1 bash <<EOF   echo $F1 echo $F2 date EOF done The problem I am finding is that the cut is extracting ALL values in the first column of FILE and the script is erroring because the second row value is not being handled. Is there anyway I can have the script process ie cut the first row in turn, do the ssh and then (HowTos)