loop statements

while   <cond>   do

<statement>

done

 
for   <init_expr>    while   <cond>    step   <step_expr>    do

<statement>

done

 

The break statement can be used to terminate an executing loop. It is similar to the 'C' break statement.

The continue statement can be used to cause control to skip the remaining code to the end of the loop. It is similar to the 'C' continue statement.