运维网's Archiver
论坛
›
Shell/Powershell
› shell 中的$* $# $@的含义
mouse
发表于 2018-8-28 11:55:51
shell 中的$* $# $@的含义
$*表示所有这些参数都被双引号引住。若一个脚本接收两个参数,$*等于$1$2
$@表示所有这些参数都分别被双引号引住,若一个脚本接收到两个参数,$@等价于$1$2
$#表示提供给脚本的参数号
页:
[1]
查看完整版本:
shell 中的$* $# $@的含义