storing todays date into a shell variable

Mulley, Nikhil mnikhil at corp.untd.com
Thu Dec 16 06:53:08 UTC 2004


Hi , 
I wanna have a shell script which puts the today's date into a shell variable and later use the Shell Variable for other reasons, 
I have been using like this..
 
#!/bin/sh
TODAY=date '+%m/%d/%y'
echo $TODAY
Can any one tell me what could be wrong in this... 
 
Thanks,
Nikhil.
 °v°
/(_)\
  ^ ^
 



More information about the redhat-list mailing list