我有一个使用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**
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激。