storing todays date into a shell variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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°
/(_)\
  ^ ^
 
-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subjecthttps://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux