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
相關文章
相關標籤/搜索