The until Loop
The “until” loop is just like a while loop, expect that it runs while the test staement is false and stops when it is true. (Runs until condition is true.)
The Break and Continue Commands
The “break” command can be used to exit a loop while executing the loop body regardless of the loop test condition. The “continue” command can be used to skip remaining commands in an iteration of a loop. These commands can make things unclear, so they should be used sparingly.
Controlling Loop Output
Since loops are commands, we can:
You can also redirect the output of individual commands to files or pipe to multiple commands inside a loop.
More Loop Activity