I need to do date arithmetic in Unix shell scripts that I use to control the execution of third party programs.
I\'m using a function to increment a day and another
Assuming you have GNU date, like so:
date --date='1 days ago' '+%a'
And similar phrases.