标签:进度条 one int ++ let print div sleep bin
#!/bin/bash i=0 str=‘#‘ ch=(‘|‘ ‘\‘ ‘-‘ ‘/‘) index=0 while [ $i -le 25 ] do printf "[%-25s][%d%%][%c]\r" $str $(($i*4)) ${ch[$index]} str+=‘#‘ let i++ let index=i%4 sleep 0.1 done printf "\n"
标签:进度条 one int ++ let print div sleep bin
原文地址:http://www.cnblogs.com/caolicangzhu/p/7169378.html