进度条---shell脚本版本

 #!/bin/bash
 bar=""
 count=0
 clock=("|" "/" '-' '//')
 index=0
 while [ $count -le 100 ]
 do
     printf "[%-100s] [%d] [%c]\r" "$bar" "$count" "${clock[index]}"
     bar=${bar}"="
     ((count++))
     ((index=count%4))
     sleep 0.05
 done
 printf "\n"

文章名称:进度条---shell脚本版本
网站路径:http://csdahua.cn/article/pdhhch.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流