Bash Scripting
Reference
Variables
Special Variable | Description |
---|---|
$0 | The name of the bash script. |
$1, $2…$n | The bash script arguments. |
$$ | The process id of the current shell. |
$# | The total number of arguments passed to the script. |
$@ | The value of all the arguments passed to the script. |
$? | The exit status of the last executed command. |
$! | The process id of the last executed command. |