How can I print the date which is a day before current time in Bash?
if you have GNU date and i understood you correctly
$ date +%Y:%m:%d -d "yesterday" 2009:11:09
or
$ date +%Y:%m:%d -d "1 day ago" 2009:11:09
1.4m articles
1.4m replys
5 comments
57.0k users