Tag Archives: date

Shell Script: Calculate Yesterday’s Date on UNIX

shell script

There are times when you will need to calculate yesterday’s date in a UNIX shell script to run some date sensitive cron jobs. There are currently no standard command line tools in UNIX to perform such date arithmetic.