storing current month in shell variable..
Mulley, Nikhil
mnikhil at corp.untd.com
Thu Dec 16 07:51:38 UTC 2004
Thanks for Pointing me.. :) I got it right ...
-----Original Message-----
From: redhat-list-bounces at redhat.com
[mailto:redhat-list-bounces at redhat.com]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 at redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list
More information about the redhat-list
mailing list