I want to print a loop like below
a=0
while [ $a -lt 100 ]
do
echo ${a}%
a=`expr $a + 1`
sleep 1
done
It throws output as follows
1%
2%
3%
4%
...
But I wanted to print like running value 1%
replaced by 2%
, etc. till 100%
in the same line.