I've got a problem with syntax in a tcsh script.
If I type this in a tcsh shell:
date -v-7d "+[%d/%m/%Y:%H:%M:%S]"

It returns this:

but when I use it in a script like this:
set Log = ` date -v-7d "+[%d/%m/%Y:%H:%M:%S] `
echo $Log

it returns an error because of the [ and ].
If I remove either one of them it runs ok.

How do I get the output of the script the same as in the command line?


[EMAIL PROTECTED] mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to