The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 10-21-2006
spudtheimpaler's Avatar
spudtheimpaler spudtheimpaler is offline
Registered User
 

Join Date: Oct 2006
Posts: 8
clarification

Ok I have thought of a way to clarify my question.

my last argument from many will be a filename

say I have a script

Code:
touch /tmp/$#
will create a file /tmp/3

Whilst I'm not surprised by this, how can I change it so that $# doesn't give me the number of arguments, but the argument at position $#

Hope that clears things up.

Mitch.
Reply With Quote