Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-27 00:17:30 +00:00
parent dfbc0264f9
commit 273f2b186d
29 changed files with 401 additions and 35 deletions

17
tldr/continue Normal file
View File

@@ -0,0 +1,17 @@
---
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 while :; do continue 2; done; done`