Number of Positional Parameters
$#
is the number of available positional parameters $1
, $2
, etc.
Links
Examples
Print number of positional parameters :
|
|
Output: 3
.
BashSupport Pro is a Bash IDE with support for $# – try it now!
$#
is the number of available positional parameters $1
, $2
, etc.
Print number of positional parameters :
|
|
Output: 3
.