Difference between revisions of "bash progress output with printf"

From thelinuxwiki
Jump to: navigation, search
(Created page with "'''counter progress''' printf "i am counting..." for i in {1..5} do printf "$i" sleep 1 printf "\b" done printf "\n" category:bash category:scripting")
 

Latest revision as of 18:54, 31 October 2013

counter progress

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