i=1
# 小于5等于时候才执行
while [ ${i} -le 5 ]
do
echo ${i}
i=`expr ${i} + 1`
# 休眠3秒
sleep 3
done
echo done
参考
http://c.biancheng.net/cpp/view/2736.html
i=1
# 小于5等于时候才执行
while [ ${i} -le 5 ]
do
echo ${i}
i=`expr ${i} + 1`
# 休眠3秒
sleep 3
done
echo done
http://c.biancheng.net/cpp/view/2736.html