Shell while

while command
do
  ...
done


c=0
while [ $c -lt 5 ]
do
  c='expr $c+1'
  echo $c
done

posted @ 2016-12-13 21:11  智能先行者  阅读(172)  评论(0编辑  收藏  举报