On 12/30/05 11:11 AM, "Dan Lund" <
situationalawareness@gmail.com> 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 -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss