grep tomorrow's date

Hello All,

I have found another solution,

/db/pub/infra/GNUshellutils/current/bin/date gives the current date and time as Mon Jan 12 04:05:29 EST 2009

/db/pub/infra/GNUshellutils/current/bin/date -d1day which gives tomorrow's date and time.

To get the desired output, I have used following command

TDATE=`/db/pub/infra/GNUshellutils/current/bin/date -d1day | awk '{print $3,$2,$6}'`

echo $TDATE

which will give the tomorrow's date as 13 JAN 2009.

Thank you all for your support !!!

That solution was already given to you in earlier posts.

Don't pipe it into awk just to format the date, use date's switches!

$ date -d1day  +'%d %b %Y'
13 Jan 2009