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