学会思考
刻意练习
#!/bin/bash
#filename.sh
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 on 2017-06-10 10:31  Worty  阅读(2252)  评论(0编辑  收藏  举报