您当前的位置: 首页 >  linux
  • 2浏览

    0关注

    1477博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

linux shell $#获取所有参数的个数 $@获取所有参数

软件工程小施同学 发布时间:2021-06-11 10:19:47 ,浏览量:2

直接看示例: [root@localhost xly]# cat t.sh #!/bin/bash echo $# echo $@ [root@localhost xly]# sh t.sh 0 [root@localhost xly]# sh t.sh a b c 3 a b c 说明:

 

  • $@表示所有参数
  • $#表示所有参数的个数

 

https://zhidao.baidu.com/question/412833470.html

关注
打赏
1665320866
查看更多评论
立即登录/注册

微信扫码登录

0.0448s