Parameters (or command line arguments) are shell variables which carry
information pertaining to a command line.
To reference a parameter, the dollar sign is placed before a number
$0 is special and refers to the name of the
current program which would be
$0 was accessed at
the command line prompt.
While the number after the
$ must be
9 or less, higher
numbered arguments can be accessed using the
n is a positive integer.
To access the 11th command line argument the following variable would
- operator can be used in the same manner as it was for
A shorthand version of the
#argv variable is to simply enclose
the number in curly braces,
Parameters may seem strange and useless, but there importance will
become evident in the sections on shell programming.