I wanted to read a ASCII file inside a while
-loop with each iteration I want to read each row starting from the SECOND row of the file. After a lot of searching what I came up with is in below:
a=1
while [ $a -le 04 ]
do
while read p q r; do
root -l macro.C\($r\) #the operation is dependent of the entries of the third column in the ASCII file
done < ascii.txt
a=`expr $a + 1`
done
But, this doesn't seem to serve my purpose. Firstly I want to skip the first row, but don't know how to do that. Also, what it does is, it feeds all the entries of that column for each iteration of the outer while
-loop.
Can anybody help me with this?
Thanks and regards, Saumyen