我想在每次迭代中读取 while
循环内的 ASCII 文件,我想从文件的第二行开始读取每一行。经过大量搜索,我想出了以下内容:
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
但是,这似乎不符合我的目的。首先,我想跳过第一行,但不知道该怎么做。此外,它的作用是为外部 while
循环的每次迭代提供该列的所有条目。
有人可以帮我吗?
谢谢和问候, 炒面