Monday, September 7, 2015

How to get 2 days ago in Linux

To get 2 days ago in Linux,

you can do as follows:

date --date="-2day" "+%Y.%m.%d"

Reference:
http://www.cyberciti.biz/tips/linux-unix-get-yesterdays-tomorrows-date.html

No comments:

Post a Comment