for i in {1..5};do
echo $i/5
done
will echo
1/5
2/5
3/5
4/5
5/5
Is it possible to overwrite the previous echoed/printed line at every iteration? The program should echo 1/5
and then 2/5
instead of 1/5
and then 3/5
, etc. At the end of the program only one line which contains 5/5
should be left.