mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
503 B
Plaintext
18 lines
503 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# continue
|
|
|
|
> Skip to the next iteration of a `for`, `while`, `until`, or `select` loop.
|
|
> 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`
|