1
0
Fork 0
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:
Managor 2024-12-08 00:39:46 +02:00 committed by GitHub
parent 78a8de758e
commit e590ad1103
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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`