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
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.