The $0 variable is the program name The $1 variable being the first parameter, $2 being the second parameter, and so on, up to $9 for the ninth parameter. <After the ninth variable, you must use braces around the variable number, such as ${10}> The $# variable contains the number of command line parameters The $* variable takes all of the parameters supplied on the command line as a single word The $@ variable on the other hand, takes all of the parameters supplied on the command line |
|