028-86922220

建站动态

根据您的个性需求进行定制 先人一步 抢占小程序红利时代

进度条---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://www.tsicrk.com/article/pdhhch.html

其他资讯

让你的专属顾问为你服务

1.6224s