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