SOLUTION to ksh argument parsing

Jonathan Chang jonc at uts.amdahl.com
Sat Sep 1 06:13:08 AEST 1990


Thanks for all the responses!  The most popular (and easiest) 
way to extract the last argument passed to a ksh script is:

eval lastarg=\${$#}


$# == the total number of arguments



More information about the Comp.unix.questions mailing list