bash progress output with printf

From thelinuxwiki
Jump to: navigation, search

counter progress

printf "i am counting..."  
for i in {1..5}
do
 printf "$i"
 sleep 1
 printf "\b"
done
printf "\n"