进度条---shell脚本版本-古蔺大橙子建站
RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
进度条---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://scgulin.cn/article/pdhhch.html