#!/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
#!/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
转载于:https://www.cnblogs.com/hujianglang/p/6978030.html