while
Execute consequent-commands as long as test-commands has an exit status of zero
SYNTAX while test-commands; do consequent-commands; done
The return status is the exit status of the last command executed in consequent-commands, or zero if none were executed.
“Men talk of killing time, while time quietly kills them.” - Dion Boucicault
Related Linux Bash commands:
case - Conditionally perform a command
for - Expand words, and execute commands
if - Conditionally perform a command
until - Execute commands (until error)
Equivalent Windows XP commands:
FOR - Conditionally perform a command several times
IF - Conditionally perform a command