Unix Linux Community
Bash Shell - # of arguments
Shell Programming and Scripting
DNAx86
January 10, 2008, 12:17pm
1
Hi!,
How can I check the number of arguments passed from the shell in a bash shell ?
denn
January 10, 2008, 12:23pm
2
one way
echo $#