Days until Dec 1

From: Nyarlathotep (cthulhu_at_cthulhu.org)
Date: 03/29/04


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



Relevant Pages

  • Re: Linux ABI and permissions to /dev
    ... Zitat von "Ralf S. Engelschall": ... > ultimately fails on startup. ...
    (freebsd-current)
  • Re: Restarting Services that fail at startup
    ... "Glenn" wrote: ... | As far as i can see a windows service which fails at startup(i.e times ... | out on a slow machine) doesn't get recovered by the services recovery ...
    (microsoft.public.win2000.general)
  • RE: service fails to start!
    ... > That will give you and indication qwhere it fails on startup. ...
    (microsoft.public.sqlserver.connect)
  • gnucash fails to execute now
    ... Gnucash used to work, now it fails on startup w/: ... ERROR: In procedure dynamic-link: ...
    (freebsd-questions)
  • Re: Stopping software from starting when Windows starts?
    ... > install inadverdently selecte option to load ... > that I am in non-standard startup mode. ... You can use regedit to see more programs that run at startup. ... If all else fails - READ THE INSTRUCTIONS! ...
    (microsoft.public.windowsxp.help_and_support)