Script :
timer.sh
#!/bin/sh refresh=5 echo -en "" i=$refresh while [[ $i -ge 0 ]] do sleep 1 printf "\rTimer : %d" $i i=$(expr $i - 1) done echo ""