Thanks for Pointing me.. :) I got it right ... -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx]On Behalf Of Ed Greshko Sent: Thursday, December 16, 2004 1:14 PM To: General Red Hat Linux discussion list Subject: Re: storing current month in shell variable.. Mulley, Nikhil wrote: > Hi , > Nikhil again ... :) > I wanna store the current month in a shell variable , for which I am attempting to do like this ... > #!/usr/bin/sh > MON=`(date | awk '{print $2}') > echo $MON > But when I execute the script , I get nothing... > Can anyone point me in where I have gone wrong ?? Missing trailing ` MON=`(date | awk '{print $2}')` -- "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools." --Ford Prefect in "Mostly Harmless". -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list