$0 :脚本文件路径本身; 取文件名:basename $0
$# : 脚本参数个数
$* : 所有参数,每个参数当作为一个字串,一般用于保存用户的参数
$@: 所有参数,所有参数当作为一个字串,一般用于保存用户的参数
文章标签 bash编程之特殊变量 文章分类 运维
$0 :脚本文件路径本身; 取文件名:basename $0
$# : 脚本参数个数
$* : 所有参数,每个参数当作为一个字串,一般用于保存用户的参数
$@: 所有参数,所有参数当作为一个字串,一般用于保存用户的参数
Linux下Bash编程之位置和特殊变量(四)
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M