135-18219792

建站动态

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

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

其他资讯

让你的专属顾问为你服务