#!/bin/bash
proline=''
for i in `seq 0 2 100`
do 
# printf "[%-50s]"左对齐输出50个字符串
# \r返回上一行的起始实位置
printf "progress:[%-50s]%d%%\r" $b $i
sleep 0.1
b="#$b"
done
echo