continue: Resume the next iteration of a loop

Resume the next iteration of an enclosing for, while,
until, or select loop.



SYNTAX
continue [n]
If n is supplied, the execution of the nth
enclosing loop is resumed. n must be greater than or equal to 1.
The return status is zero unless n is not greater than or equal to
1.
Example
for myloop in 1 2 3 4 5
do
if [ "$myloop" -eq 3 ]
then
continue # Skip rest of this particular loop iteration.
fi
echo -n "$myloop"
done
continue is a POSIX `special? builtin

"We are American at puberty. We die French" - Evelyn
Waugh
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (3 + 4) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 12.04.2009
Views: 636
Item date: 13.05.2009
Views: 1376
Item date: 29.06.2010
Views: 65
Item date: 16.06.2009
Views: 1577
Item date: 19.07.2009
Views: 1290
Item date: 04.02.2009
Views: 1098
Item date: 26.09.2009
Views: 1628
Item date: 08.03.2009
Views: 1232
Item date: 27.09.2009
Views: 913
Item date: 09.03.2009
Views: 391