bash progress output with printf

From thelinuxwiki
Revision as of 18:54, 31 October 2013 by Nighthawk (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"