Special Characters in Bash
$0: name of the script$1to$9, arguments to the script.$1is the first argument and so on.$@: all the arguments$#: number of arguments$?: return code of the previous command$$: process identification number (PID) for the current script
FYI:
Was this page helpful?