commands.sh

continue

all

Skip to the next iteration of a `for`, `while`, `until`, or `select` loop.

More info →

Examples (2)

Skip to the next iteration

while :; do continue; echo "This will never be reached"; done

Skip to the next iteration from within a nested loop

for i in {1..3}; do echo $i; while :; do continue 2; done; done
made by @shridhargupta | data from tldr-pages