I know that this should be straight forward but for some reason it is not.
I have a variable where I am attempting to store my SQL string but for some reason the command line is doing odd things when I attempt to escape the asterick.
The assignment is as follows:
FILE=$(echo "unload to 'audit"$VAR".unl' select * from pei_audit_trail where change_date < today;")
If I attempt to use the esacpe character the result will give me /* and not *.
If I single quote the asterisk the result will be '*'.
Thanks in advance for your assistance.
SteveR
I have a variable where I am attempting to store my SQL string but for some reason the command line is doing odd things when I attempt to escape the asterick.
The assignment is as follows:
FILE=$(echo "unload to 'audit"$VAR".unl' select * from pei_audit_trail where change_date < today;")
If I attempt to use the esacpe character the result will give me /* and not *.
If I single quote the asterisk the result will be '*'.
Thanks in advance for your assistance.
SteveR