good morning campers
trying to learn unix & scripting (steep learning curve) to satisfy a client's 'jack of all trades' requirements (isnt life fun ...)
client standard is c shell (csh) for all scripts (NOT MY DECISION ...)
trying to assign date value to variable; this works ok ...
but this does not ...
any thoughts please ?
IBM AIX 4.3 in case it makes any difference (i have found out the hard way that there are subtle differences ...)
thank you in advance ...
Best of Irish Luck, David.
djwilkes@hotmail.com
trying to learn unix & scripting (steep learning curve) to satisfy a client's 'jack of all trades' requirements (isnt life fun ...)
client standard is c shell (csh) for all scripts (NOT MY DECISION ...)
trying to assign date value to variable; this works ok ...
Code:
% date +"%d%m%Y"
25072001
but this does not ...
Code:
% TODAY=`date +"%d%m%Y"`
TODAY=25072001: Command not found.
% echo $TODAY
TODAY: Undefined variable.
any thoughts please ?
IBM AIX 4.3 in case it makes any difference (i have found out the hard way that there are subtle differences ...)
thank you in advance ...
Best of Irish Luck, David.
djwilkes@hotmail.com