[root@node29 ~]# vim ./test.sh for ((i=0; $i<=100; i+=1)); do printf "progress: %d\r" $i sleep 1 done echo ""