Date arithmetic in Unix shell scripts

Assuming you have GNU date, like so:

date --date="1 days ago" '+%a'

And similar phrases.

Leave a Comment