Shell Scripting

Roger McCalman roger at
Thu Mar 9 21:40:55 GMT 2000

On Tue, Mar 07, 2000 at 09:31:19PM +0000, Gary Brewer wrote:
> I thought it was ${$#} but in csh this just echoed a number not a string.
> Any ideas?

checkout the man page on getopt. in general to get at args beyond $9
you need to shift the others out of the way i.e. using sh

shift `expr $# - 1`

Cheers, Roger

More information about the Ukfreebsd mailing list