while: while COMMANDS; do COMMANDS; done

Execute commands as long as a test succeeds.

Expand and execute COMMANDS as long as the final command in the `while' COMMANDS has an exit status of zero.

Exit Status:
Returns the status of the last command executed.