[TriLUG] OT: bash scripting question
Chris Knowles
chrisk at trilug.org
Wed Jun 25 14:53:09 EDT 2003
Well, darn.
I thought I'd tried all the possible variations, but I used "now-N" or
"now+N"
It's a shame that isn't documented in the man page.
As always Jon, thanks,
CJK
On Wed, 2003-06-25 at 14:40, Jon Carnes wrote:
> On Wed, 2003-06-25 at 13:17, Chris Knowles wrote:
> > I do have a question... date -d "yesterday" and date -d "tomorrow"
> > works, but what's the right way to generate a date 1 week ago,
>
> date -d "-1 week"
>
> > or an
> > arbitrary date? (30 days ago, 45 days ago, 10 days from now, etc)
>
> date -d "-30 days", date -d "-45 days", date -d "+10 days"
>
> HtH - Jon
>
> _______________________________________________
> TriLUG mailing list
> http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ:
> http://www.trilug.org/faq/TriLUG-faq.html
--
Chris Knowles <chrisk at trilug.org>
More information about the TriLUG
mailing list