I have following command i use in a script as a countdown timer and it works great
# 30 sec Countdown Timer
for i in {30..1};do echo -n "$i." && sleep 1; done
Output:30.29.28.27.26 etc....
But I would like to be able to output in 5sec intervals like
: 30.25.20.15 etc..
how can i change the script to do this ?