Hello folks
Below command shows current date
echo `date +%Y-%m-%d`
2010-04-21
How to show one day old date, i want see like
2010-04-20
Hello folks
Below command shows current date
echo `date +%Y-%m-%d`
2010-04-21
How to show one day old date, i want see like
2010-04-20
date +%Y-%m-%d --date="1 day ago"
Any specific reason why you are using echo and back tick `