On Wed, 21 Jan 2004, Johannes Erdfelt wrote:<SNIP>
How else do you do date math in your shell scripts?
I didn't say math, I said "date math". They're two *VERY* different things. Calculating a date is a non-trivial thing unless you're a savant.
But not one that cal is particularly helpful with. All that cal can do is print a tabulated calander for a particular month or year. I personally make use of gnu 'date' in scripts.
Yours,
John