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