mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-25 17:55:35 +02:00
while: add conditional repeat of command example (#15035)
Update while.md
This commit is contained in:
parent
78a8de758e
commit
e590ad1103
1 changed files with 4 additions and 0 deletions
|
@ -10,3 +10,7 @@
|
|||
- Execute a command forever once every second:
|
||||
|
||||
`while :; do {{command}}; sleep 1; done`
|
||||
|
||||
- Execute a command until it returns a non-zero value:
|
||||
|
||||
`while {{command}}; do :; done`
|
||||
|
|
Loading…
Add table
Reference in a new issue