#! /bin/sh if [[ $# -eq 1 ]] then TIMER=$1 else TIMER=305 fi while true do for ((i=$TIMER;i>0;i--)) do sleep 1 clear echo $i done printf "\a" done