ru Русский

Reticularium

NETWORKS PLACE

$0 Filename of script
$1 Positional parameter
${10} Positional parameter if >=10
$# Number of positional parameters
"$*" All the positional parameters (as a single word if quoted)
"$@" All the positional parameters as separate strings
${#*} Number of command-line parameters passed to script
${#@} Number of command-line parameters passed to script
$? Return value
$$ Process ID of script
$- Flags passed to script (using set)
$_ Last argument of previous command
$! Process ID of last job run in background

Comment it: