I would basically like to rip off, wholesale, some command-line script which will provide me a countdown -- only in days. No years, months, minutes, or seconds. Unfortunately, adapting an existing script is beyond my ken.
This idea of Kevin Kelly's inspired me to perhaps try something similar to motivate me towards working more diligently towards long-term personal goals, but I'm not an iGoogle user. I'd like to instead set it up as the result of a shell script which I can then pipe through GeekTool onto my Mac OS X desktop.
The only problem is that there is a lot of Googlenoise out there clogging up the results, and I can't seem to find the kind of script I'm looking for. I did find a countdown script that would tell it to me in years, months, days, horus minutes, and seconds -- but I really would prefer a days-only readout, similar to that depicted on the page. And I see various Javascript to include on webpages -- but I'm looking for something to be done locally, and I can't use the Javascript and then pipe it through lynx or links, since when I bring up such a page using either, the Javascript result doesn't seem to show. (I doubt lynx or links has Javascript support, do they?)
Anyway, can anyone point me towards a shell script that will take the present date, subtract it from a future date, and tell me the number of days between then and now?
I should add that I'm an idiot savante when it comes to shell scripting and Perl ... more of a splicer than anything resembling a programmer. I can sometimes look at code and grok a little of what it's saying, but telling me to embed the Doohickie:Flippa library into the Perl output by piping it through the black hole matrix into my Bananaphone is going to make me look at you blankly.
Thanks!
Shoudl work in any bourne-like shell.
posted by fvw at 3:20 PM on September 27, 2007