Bash ~ Perl ~ Python ~ Batch ~ Ruby
Friday, 6 September 2013
continue command in shell with n
for i in $(seq 10) ;
do
for j in $(seq 10)
do
if [ $j -eq 4 ]
then
continue 2
fi
echo $j
sleep 1
done
echo $i
sleep 1
done
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment