135-1821-9792

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

其他资讯



Copyright © 2009-2022 www.wtcwzsj.com 青羊区广皓图文设计工作室(个体工商户) 版权所有 蜀ICP备19037934号