progress bar

Hi all,
I want to print # like that in a progress bar..
For e.g We can notice that during installation ... but,how to do that?

Thnx,
sakthi.

If you already have access to the information needed to estimate progress, you can use echo -n "#" to print # characters without a trailing newline.

If you aren't using bash/Linux, use

echo "#\c"

printf "#" is more portable

Got it!
i=40
while [ $i -ge 0 ]
do
echo "#\c"
sleep 0.004
i=`expr $i - 1`
done

Thnx for all