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

      continue [n]

    -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, to display your local syntax from the bash prompt type: help continue

“Success is not final, failure is not fatal: it is the courage to continue that counts” ~ Winston Churchill

Related macOS commands

for - Expand words, and execute commands.
while - Loop to execute commands.
until - Loop to execute commands.

Copyright © 1999-2024
Some rights reserved