Days until Dec 1
From: Nyarlathotep (cthulhu_at_cthulhu.org)
Date: 03/29/04
- Next message: Hans Kuder: "saving files with Ted"
- Previous message: googlefan: "Re: Newbie: system failing to boot after kernel update"
- Next in thread: Larry Starr: "Re: Days until Dec 1"
- Reply: Larry Starr: "Re: Days until Dec 1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 28 Mar 2004 19:48:08 -0500
How do I print the days until December 1 at startup?. I tried adding
this to my .bashrc file and it fails.
echo Today is `date`
todayis=`date +%j`
export todayis
bigeventdate=`date -d '1 Dec' +%j`
export bigeventdate
diffdate=$($(bigeventdate)-$(todayis))
echo You have $diffdate days until the big event
-Nyarlathotep
- Next message: Hans Kuder: "saving files with Ted"
- Previous message: googlefan: "Re: Newbie: system failing to boot after kernel update"
- Next in thread: Larry Starr: "Re: Days until Dec 1"
- Reply: Larry Starr: "Re: Days until Dec 1"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|