I am using CentOS 5.3 and I knew that we can easily to use "-d" option to get some special day.
like to get yesterday
Code:
date -d "yesterday"
to get today in the pasted mont
Code:
date -d "last month"
but is there a shortcut to get the day of the first and the last day in a month.
like
2009-02-01 2009-05-01 2009-06-01 (first day)
2009-02-28 2009-05-31 2009-06-30 (last day)
thank you very much