shell编程之sleep的运用

#!/bin/bash
echo -n "Count:"
tput sc
count=0;
while true;
do
if [ $count -lt 40 ]
then let count++;
sleep 1;
tput rc
tput ed
echo -n $count
else
exit 0;
fi
done

posted @ 2013-08-07 02:04  l851654152  阅读(880)  评论(0编辑  收藏  举报