|
Date Format Does not work in Shell
I'm am able to format the date in the unix prompt using NOW=$(date +"%d%m%y"). However, when i put the same format into a shell script, it errors out with the followign.
sintax error on line 4: `NOW=$' unexpected.
#!/bin/ksh
EXP_LOC=/u02/oradata/exports
NOW=$(date +"%d%m%y")
echo $NOW
~
~
~
~
~
~
~
~
~
~
"test" 13 lines, 363 characters
|