【发布时间】:2012-04-25 18:18:03
【问题描述】:
我有一个代码,它使用 while 循环逐行读取文件。在while循环内,我有一定的条件。有没有一种方法可以让我跳过当前行并根据条件读取下一行?让我准确地说:
while read Line
do
//some sample conditions
a=$Line
if [ "a" == "b" ]
//i want to go to the next line from this point.
done < **inputfile**
任何帮助将不胜感激。
【问题讨论】:
标签: shell while-loop