$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/archive/2013/03/26/2981933.html