Control Continue - Skip Loop Iterations | Online Free DevTools by Hexmos
Control loop execution with Continue command. Skip iterations in for, while, until, and select loops. Free online tool, no registration required.
continue
Skip to the next iteration of a
for,while,untilorselectloop. More information: https://www.gnu.org/software/bash/manual/bash.html#index-continue.
- 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