test.sh:
#!/bin/sh #定义函数 function fun1() { echo $1 # $1表示第一个参数 echo $2 } # 调用 fun1 hello shuoeasy.com
输出:
[root@localhost shell]# ./test.sh hello shuoeasy.com
名 称必填
邮 箱选填
网 址选填
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。
阅读: 6120
阅读: 5480
阅读: 3963
阅读: 3789
阅读: 3597
阅读: 3511
扫扫关注微信
发表评论