shell常用命令-$用法

来源:互联网 发布:rsc数据库 编辑:程序博客网 时间:2024/04/24 01:19
$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 0