linux-tutorial/codes/shell/示例脚本/逻辑控制/使用continue命令.sh

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