shell $! ,$?, $$,$@在shell中代表什么

$n        $1 the first parameter,$2 the second...
$#        The number of command-line parameters.
$0        The name of current program.
$?        Last command or function's return value.
$$        The program's PID.
$!        Last program's PID.
$@        Save all the parameters.

原文地址:https://www.cnblogs.com/xinyonde/p/2981933.html