Shell Script: Calculate Yesterday’s Date on UNIX July 5th, 2009 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.