1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 13:02:08 +02:00
tldr/pages/common/continue.md
2024-12-26 23:22:18 +05:30

12 lines
388 B
Markdown

# 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 while :; do continue 2; done; done`