显示程序运行进度

07.24.2010 by sunliguo - 0 Comment
Posted in Linux-76Views
#!/bin/bash
b=''
for ((i=0;$i<=100;i+=2))
do
        printf "progress:[%-50s]%d%%\r" $b $i
        sleep 0.1
        b=#$b
done
echo

Leave a Reply

click to changeSecurity Code