Skip to content

Instantly share code, notes, and snippets.

@luiz
Created June 27, 2012 23:48
Show Gist options
  • Save luiz/3007672 to your computer and use it in GitHub Desktop.
Save luiz/3007672 to your computer and use it in GitHub Desktop.
Countdown for bash
#!/bin/bash
# depends: figlet beep
# usage: countdown.sh <seconds>
COLUMNS=$(tput cols)
for i in `seq $1 -1 1`
do
clear
figlet -w $COLUMNS -c $i
sleep 1
done
clear
beep
figlet -w $COLUMNS -c "EOT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment