Help: Command line rotating line
Florian Diesch
diesch at spamfence.net
Wed Feb 11 19:54:24 UTC 2009
Chaman Singh Verma <csv610 at gmail.com> wrote:
> Hello,
>
> I am not quite sure if this is the place to ask some specific question about
> linux/unix functionality. So if it
> is not the right place, please ignore this mail.
>
> I have seen many software that uses command line rotating line to indicate
> wait for example
>
> Processing Sequence .... | This | line keeps on rotating
>
> and other example
>
> Current iteration number . # ( In this # keeps on changing on the screen )
>
> Can someone tell me how it is done ? What software I must use which is
> available on ubuntu ?
for i in $(seq 1 20); do
for c in '/' '-' '\' '|' '/' '-' '|'; do
printf '\b%s' $c
/bin/sleep 0.1
done
done
Florian
--
<http://www.florian-diesch.de/>
-----------------------------------------------------------------------
** Hi! I'm a signature virus! Copy me into your signature, please! **
-----------------------------------------------------------------------
More information about the ubuntu-users
mailing list