mirror of https://github.com/fengyuhetao/shell.git
13 lines
180 B
Bash
13 lines
180 B
Bash
|
#!/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
|