标签:
[root@localhost ~]# cat jindutiao.sh #!/bin/bash #进度条 n=$((100/10)) N=$((100/20)) for i in `seq 500`
do sleep 0.01 [ $(($i%$n)) -eq 0 ] && echo -ne "\b=" && continue [ $(($i%$N)) -eq 0 ] && echo -ne "-" done echo ""
[root@localhost ~]# bash jindutiao.sh ================================================== [root@localhost ~]#
标签:
原文地址:http://www.cnblogs.com/wangyuebo/p/5823556.html