[root@localhost ~]# cat jindutiao.sh #!/bin/bash #进度条 n=$((100/10)) N=$((100/20)) for i in `seq 500`
do sleep 0.01 [ $(($i%$n)) -eq 0 ] && echo -ne "=" && continue [ $(($i%$N)) -eq 0 ] && echo -ne "-" done echo ""
[root@localhost ~]# bash jindutiao.sh ================================================== [root@localhost ~]#