Arguments
Expression | Description |
---|---|
$1 ⦠$9 |
Parameter 1 … 9 |
$0 |
Name of the script itself |
$1 |
First argument |
${10} |
Positional parameter 10 |
$# |
Number of arguments |
$$ |
Process id of the shell |
$* |
All arguments |
$@ |
All arguments, starting from first |
$- |
Current options |
$_ |
Last argument of the previous command |
See: Special parameters |
Comments