the simpliest way to get yesterday’s date on a Unix command line

$ date '+%Y%m%d' --date=yesterday
20140603

Comments

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.