运维网's Archiver
论坛
›
Shell/Powershell
› shell进度条实现
sonyet
发表于 2018-8-20 14:03:33
shell进度条实现
#!/bin/bash
b=''
i=0
while [ $i -le100 ]
do
printf "progress:[%-50s]%d%%\r" $b $i
sleep 0.1
i=`expr 2 + $i`
b=#$b
done
echo
页:
[1]
查看完整版本:
shell进度条实现