How can I retrieve yesterday date using bash?
$ date '+%A, %Y-%m-%d'
Saturday, 2014-06-28
$ date -d "yesterday" '+%A, %Y-%m-%d'
Friday, 2014-06-27

Customize the above date options within single quotes to get your desired date format:


Free Linux eBooks

Do you have the right skills?

Our IT Skills Watch page reflects an up to date IT skills demand leaning towards the Linux and Unix environment. We have considered a number of skills and operating systems.

See the result...

Go to top