shell/结构化命令/使用continue命令.sh

13 lines
180 B
Bash
Raw Normal View History

2016-05-13 21:42:54 +08:00
#!/bin/bash
#using the continue command
for (( var1 = 1; var1 < 15; var1++ ))
do
if [ $var1 -gt 5 ] && [ $var1 -lt 10 ]
then
continue
fi
echo "Iteration number:$var1"
done