Idea for date(1) improvement.

Poul-Henning Kamp phk at
Wed Sep 8 04:58:54 PDT 2004

In message <Pine.BSF.4.53.0409081106290.51837 at>, "Bjo
ern A. Zeeb" writes:
>On Wed, 8 Sep 2004, Poul-Henning Kamp wrote:
>> I have sometimes needed to get the date of yesterday or last monday
>> and so on for creating filenames.
>> We have this very flexible code in at(1) and cvs(1) for specifying
>> time.
>> Anyone up for making it possible to say:
>> 	date -w "2 days ago"
>> ?
>-w ? isn't it -v ?  date -v-2d ?

I meant -w as a more flexible complement to the very restricted
syntax of -v.

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

More information about the freebsd-current mailing list