[csh] $#argv
The variable $#argv contains the number of arguments passed to the shell:
#!/bin/csh
echo There are $#argv arguments
echo First argument is $argv[1], second argument is $argv[2]
echo All of the arguments are $argv[*]
[csh] $#argv
The variable $#argv contains the number of arguments passed to the shell:
#!/bin/csh
echo There are $#argv arguments
echo First argument is $argv[1], second argument is $argv[2]
echo All of the arguments are $argv[*]