29 Mar
2009
29 Mar
'09
19:33
Hello, On Sun, 29 Mar 2009, David C. Rankin wrote:
echo -en "\n\tThe count stands at: "; for ((i=1;i<=120;i++)); do mstrlen=${#i}; echo -en "$i"; sleep .1; for ((j=0;j<$mstrlen;j++)); do echo -en "\b"; done; done; echo -e "\n"
Surely there is an easier way. What say the bash gurus??
man console_codes Example: for i in $(seq 1 120); do printf "\e[2K\e[1GThe count stands at: % 3i" "$i" sleep .1 done echo HTH, -dnh -- Ceci n'est pas une .signature. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org