环境Centos 6.6
[[email protected] ~]# 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 [[email protected] ~]#
效果图:
时间: 2024-10-13 23:43:16
环境Centos 6.6
[[email protected] ~]# 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 [[email protected] ~]#
效果图: