shell语法function

来源:互联网 发布:淘宝企业店铺品牌授权 编辑:程序博客网 时间:2024/06/05 21:57
#!/bin/bash


function demo()
{
echo "all function args : $*"
echo "the first arg : $1"
echo "the second arg : $2"
echo "the third arg : $3"
}


# call the function
demo -f foo bar
原创粉丝点击