Mulley, Nikhil wrote:
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...
You want:
TODAY=`date +%m/%d/%y`
-- "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