while [condition]
do
for [condition]
do
if [ "$x" > 3 ];then
break
fi
done
if [ "$x" > 3 ];then
continue
fi
done
In the above script I have to test "$x" > 3
twice. Actually the first time I test it, if it is true I want to escape the while loop and continue to the next while loop.
Is there any simpler way so I can use something like continue 2
to escape the outer loop?