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, or an
arbitrary date? (30 days ago, 45 days ago, 10 days from now, etc)

[EMAIL PROTECTED] ~] date --version date (coreutils) 5.0 ...


I thought I had this all figured out until I ran across this one...



[EMAIL PROTECTED] ~] date --date="today + 10 days" Sat Jul 5 14:41:46 EDT 2003

[EMAIL PROTECTED] ~] date --date="today - 10 days"
Sat Jul  5 14:42:11 EDT 2003

Can anybody explain why these two are the same?
Just a bad pattern-match somewhere?

fwiw, removing the space between +/- and 10 seems to fix things,
which is more in line with Jon's earlier example.


Confused - Mark

_______________________________________________
TriLUG mailing list
   http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ:
   http://www.trilug.org/faq/TriLUG-faq.html

Reply via email to