continue - Skip to the next iteration of a loop in a shell script
Format
continue [n]
Description
continue skips to the next iteration of an enclosing
for, select, until, or
while loop in a shell script. If a number n is given,
execution continues at the loop control of the nth enclosing loop. The
default value of n is 1
.
Usage notes
continue is a special built-in shell command.
Localization
continue uses
the following localization environment variables:
- LANG
- LC_ALL
- LC_MESSAGES
- NLSPATH
Exit values
0
- Successful completion.
1
- The value of n given was not an unsigned
decimal greater than
0
.
Portability
POSIX.2, X/Open Portability Guide, UNIX systems.
Related information
break, sh, tcsh