diff --git a/pages/common/while.md b/pages/common/while.md index 60ae66b02b..7bdb6fbb54 100644 --- a/pages/common/while.md +++ b/pages/common/while.md @@ -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`