有些特殊符号经常忘记是啥意思,在此记下一笔。
$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.
>&0 重定向到标准输入
>&1 重定向到标准输出
>&2 重定向到错误输出
如果再后面再加个&表示后台运行。