linux shell进度条

1.最简单的一行进度条shell #!/bin/bash num=0 str='' max=100 postfix=('|' '/' '-' '\') while [ $num -le $max ] do let index=num%4 printf "[%-50s %-2d%% %c]\r" "$str" "$num" "${postfix[$index]}" let num++ s
相关文章
相关标签/搜索