PHP
·
发表于 5年以前
·
阅读量:8410
#!/bin/bash
#continuing an outer loop
for (( a=1; a<=5; a++))
do
echo "Iteration $a:"
for (( b=1; b<3; b++ ))
do
if [ $a -gt 2 ] && [ $a -lt 4 ]
then
continue 2
fi
var3=$[ $a * $b ]
echo " The result of $a * $b is $var3"
done
done