Wednesday, December 30, 2009

[BLUG] New Years Countdown timer

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
BLUG@linuxfan.com
http://mailman.cs.indiana.edu/mailman/listinfo/blug

No comments: