mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-12 19:55:41 +02:00
continue: add page (#15243)
This commit is contained in:
parent
e0f5846e84
commit
f88799dc85
1 changed files with 12 additions and 0 deletions
12
pages/common/continue.md
Normal file
12
pages/common/continue.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# 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 the next iteration from within a nested loop:
|
||||
|
||||
`for i in {1..3}; do while :; do continue 2; done; done`
|
Loading…
Add table
Reference in a new issue