the simpliest way to get yesterday’s date on a Unix command line johayek 11 years ago $ date '+%Y%m%d' --date=yesterday 20140603 Share this: