Re: date of 7 days ago

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kevin
Date:  
To: PLUG-DISCUSS
Subject: Re: date of 7 days ago

On 12/30/05 11:11 AM, "Dan Lund" <> wrote:
> Okay, I'm going to answer my own question it seems.
> date --date='7 days ago'


SIDEBAR:
Interesting... looks like the `date` command on all my linux boxen (Debian,
Ubuntu, Gentoo) is provided by the GNU coreutils package and supports the
--date switch.

Meanwhile, the `date` command on my BSD boxen does not support the switch.
I just tried it on FreeBSD, OpenBSD, NetBSD, and OSX boxes.

For grins, I also tried it on a Solaris 8 box. Of course, it was slightly
different than everything else. ;-)

I spend a fair amount of time bouncing between Linux and *BSD so these
things trip me up frequently. I find myself constantly tweaking shell
scripts for these nuances.

...Kevin

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss