运维网's Archiver
论坛
›
Shell/Powershell
› shell 中的#$
chj0771
发表于 2018-8-22 08:23:12
shell 中的#$
if [ $# -lt 1 ]
then
echo "没有参数"
fi
$#用于统计传递参数的个数。
echo "hello"
echo $?
$? 返回上面的执行命令的状态:0-成功,其它则失败
页:
[1]
查看完整版本:
shell 中的#$