环境Centos 6.6
[root@CentOS ~]# cat jindutiao.sh #!/bin/sh b=‘‘ for ((i=0;$i<=100;i+=2)) do printf "progress:[%-50s]%d%%\r" $b $i sleep 0.1 b=#$b done echo [root@CentOS ~]#
效果图:
本文出自 “鹏城-酱油瓶” 博客,请务必保留此出处http://yfshare.blog.51cto.com/8611708/1709888
原文地址:http://yfshare.blog.51cto.com/8611708/1709888