Actual date minus six months (HP UX)

Hi there,

is it possible to get the actual date minux six months with just a simple command?

It's easy with Linux but on HP Unix (for me) impossible :wink:

Best wishes

Check this thread: Date Arithmetic

There is also my General Purpose Date Script, a Perl stand-in that requires no special modules. It's far more limited than the "real" GNU date but handles ./date.pl -d "now - 6 months" easily.

Alternatively you could download and install the GNU Utilities Coreutils - GNU core utilities