Variable substitition

Richard van de Stadt stadt at cs.utwente.nl
Fri Nov 30 19:24:24 AEST 1990


Is there some sort of variable substitution possible in a shell script
to get the value of the last argument supplied to the script? I don't
mean shifting the arguments until one is left. I'd like to know if something 
like awk's $NF, in which NF means the number of fields, and $NF means the 
value of the last field, is possible. ${$#} results in an error message.
--
R.R. van de Stadt (Richard)
Email: stadt at cs.utwente.nl



More information about the Comp.unix.questions mailing list