while

説明
条件(コマンド)の終了ステータスが 0 である間コマンドが繰り返されます。
while 条件; do
    コマンド
done
無限 hogehoge
while true; do # true は終了ステータスが 0 であるコマンド
    echo hogehoge
done

break

説明
ループを抜ける
10回 hogehoge する
i=1
while true; do
    echo $i hogehoge
    if test $i -ge 10; then
        break
    fi
    i=$(($i+1))
done

continue

説明
以降のコマンドをスキップし先頭に戻る。
3 の倍数のときhogehoge する
i=0
while true; do
    i=$(($i+1))
    if test ! 0 -eq $(($i % 3)); then
        continue
    fi
    echo $i hogehoge
done