Need a countdown clock, and all you have is a bash terminal? No problem!

Mark, from Bloomington, shows how:

p.s. you'll need to "apt-get install figlet" (or equivalent for your
distro) first.

p.p.s. ...or edit the line and substitute "echo" for "figlet".

---------- Forwarded message ----------
From: Mark Krenz <[email protected]>
Date: Wed, Dec 30, 2009 at 1:43 PM
Subject: [BLUG] New Years Countdown timer
To: [email protected]




This is what I just posted to the climagic account on twitter and
identi.ca:

while V=$((`date +%s -d"2010-01-01"`-`date +%s`));do if [ $V == 0
];then figlet 'Happy New Year!';break;else figlet $V;sleep
1;clear;fi;done

 Of course I was limited to 140 characters.  Anyways, I thought some
people here might appreciate this little snippet.



--
Mark Krenz
Bloomington Linux Users Group
http://www.bloomingtonlinux.org/
_______________________________________________
BLUG mailing list
[email protected]
http://mailman.cs.indiana.edu/mailman/listinfo/blug

_______________________________________________
Fwlug mailing list
[email protected]
http://fortwaynelug.org/mailman/listinfo/fwlug_fortwaynelug.org

Reply via email to