$# 参数数量

$@ 参数内容

$? 返回上条命令结束值

$0 返回命令名

$* 返回命令所有参数

$1 第一个参数名

shift 截去参数,默认截去第一个

shift 2 截去前两个(左代表前)

Leave a Reply

Your email address will not be published. Required fields are marked *