I'm completely new to this and have fallen at the first hurdle.:(
I'm only playing so its not urgent.
Here is my little bit of code:
#!/bin/ksh
print Content-type: text/html
print
print '<pre style=font-family:Fixedsys>'
gtacl -c 'files $usvol1.ssdxl' |{
while read line ;do
print "${line%%=*}"
done
}
print '</pre>'
Don't worry too much about the gtacl command as that's machine specific but suffice to say the the files $usvol1.ssdxl has to be passed as is hence the single quotes (I think!).
What I'd like to do is change the code such that the $usvol1.ssdxl gets passed in as a parameter on the command line so it has to become:
gtacl -c "files $1"
The $1 gets expanded to the value of the parameter but then because the expanded value starts with a $ KSH tries to interpret as something other than a text string.
I've tried hard, but how does one get around this?
Cheers
Don