Go to the previous, next section.
Note that wherever you see a `;' in the description of a command's syntax, it may be replaced indiscriminately with one or more newlines.
Bash supports the following looping constructs.
until
until command is:
until test-commands; do consequent-commands; doneExecute consequent-commands as long as the final command in test-commands has an exit status which is not zero.
while
while command is:
while test-commands; do consequent-commands; done
Execute consequent-commands as long as the final command in test-commands has an exit status of zero.
for
for name [in words ...]; do commands; doneExecute commands for each member in words, with name bound to the current member. If "
in words" is not
present, "in "$@"" is assumed.
Go to the previous, next section.