Sunday, December 27, 2015

To 2016 countdown script.






Script to count down to the new year of 2016.


countdown2016.sh
[code]
 while [[ $(date +%Y) -ne 2016 ]];do figlet $(($(date -d 2016-01-01 +%s)-$(date\ +%s)));sleep 1;clear;done;figlet 'Happy New Year!'
[/code]

$ chmod +x  countdown2016.sh
$ ./ countdown2016.sh


No comments:

Post a Comment