storing current month in shell variable..

Mulley, Nikhil mnikhil at corp.untd.com
Thu Dec 16 07:33:48 UTC 2004


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 ??

 °v°
/(_)\
  ^ ^
 



More information about the redhat-list mailing list