continue

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

Syntax
      continue [n]

Key
    -n   Resume at the nth enclosing loop

n must be >= 1.
If n is greater than the number of enclosing loops, the last enclosing loop (the 'top-level' loop) is resumed.

The return value is 0 unless the shell is not executing a loop when continue is executed.

This is a BASH shell builtin and a Zsh shell builtin.

“Times are tough, but never forget the awe and majesty of life on this strange blue planet” ~ Rebecca Helm

Related macOS commands

Local man page: continue - Command line help page on your local machine, or type: help continue.
for - Expand words, and execute commands.
while - Loop to execute commands.
until - Loop to execute commands.


 
Copyright © 1999-2026 SS64.com
Some rights reserved