Using Arguments with C Shell Scripts
Argument, Meaning
$0
- name of script
$1
- first argument to script
$2
- second argument to script (and
$3 for 3rd etc.)
$*
- all arguments to script
$#argv
- number of arguments to script
$argv[0]
- name of script
$argv[1]
- first argument to script
$argv[2]
- second argument to script
$argv
- all arguments to script
$$
- current process number of shell
$<
- read one line from standard input