/bin/sh
Thormod N{ringsrud
thormod at dr.uucp
Sat Jan 13 01:29:15 AEST 1990
Suggestion to enhance /bin/sh
-----------------------------------
I often have a need to pick up the last parameter $1, $2 .. from
the parameter list. I have tried to catch it by referring $$#
which gives me "processnumber"#. Then I tried ${$#} which I really
thought would work, but got instead the message: bad variabel substitution.
What I really want is a new special variabel: $. (dollarpoint) giving
me the last parameter in the list.
Thormod N{ringsrud
+-------------------------------------------------------------+
! DataRojahn-> Tel: +479876720 Fax: +479876766 !
! USENET/EUnet: ...!mcsun!ndosl!dr!thormod or: thormod at dr.uucp!
+-------------------------------------------------------------+
More information about the Comp.unix.questions
mailing list