from community cafe post: to count down while true; do let a=1234567890-`date +"%s"`; echo $a; sleep 1; done or to count up while true; do date +"%s"; sleep 1; done