---------- Post updated at 07:50 AM ---------- Previous update was at 07:47 AM ----------
Thanks for the info.
But i am getting below error message:
$ sh sample.sh
date: Not a recognized flag: -
Usage: date [-u] [+"Field Descriptors"]
ls: 0653-341 The file *.rej does not exist.
ls: 0653-341 The file *.rej does not exist.
$
$ date
Mon Aug 13 08:57:39 EDT 2012
$ date "+%b %d"
Aug 13
$ date --date="yesterday" "+%b %d"
date: Not a recognized flag: -
Usage: date [-u] [+"Field Descriptors"]
$
These are the outputs which i am getting.
---------- Post updated at 08:04 AM ---------- Previous update was at 07:59 AM ----------
Thank you so much.. it was working.. Could you briefly explain the command?