Variable substitition

Jim Rogers jimr at hp-lsd.COS.HP.COM
Wed Dec 5 08:25:05 AEST 1990


/ hp-lsd:comp.unix.questions / jim at segue.segue.com (Jim Balter) /  8:05 am  Dec  1, 1990 /
In article <8393 at star.cs.vu.nl> maart at cs.vu.nl (Maarten Litmaath) writes:
>#	eval echo \"\$$#\"

Or
	eval last=\$$#
	echo "$last"
----------

for ksh, to ensure the ability to read arguments past $9:

	eval last=\${${#}}
	echo "$last"


Jim Rogers

Some of us deal with more than 9 arguments at a time.



More information about the Comp.unix.questions mailing list