How can I print the date which is a day before current time in Bash?
yesterday=`date -d "-1 day" %F`
Puts yesterday's date in YYYY-MM-DD format into variable $yesterday.
$yesterday