天天看點

shell 中的continue

cat name.txt |  while read A
do
if [ $A -ne 5 ]
then
echo $A
else
echo 我要跳過
continue
fi
done
jrhmpt01:/root# sh ./a1.sh 
1
2
3
4
我要跳過
6
7
8
9
10