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