linux shell 编程5 函数获取参数
2015-11-01 00:00
274 查看
#!/bin/sh
arg1=$1
arg2=$2
tellname ()
{
echo "this is tellname funciton and execute this function tellname !"
echo "two args: $arg1 , $arg2"
}
echo " execute function "
# execute function
tellname
arg1=$1
arg2=$2
tellname ()
{
echo "this is tellname funciton and execute this function tellname !"
echo "two args: $arg1 , $arg2"
}
echo " execute function "
# execute function
tellname
相关文章推荐
- 浅谈获取shell中函数的返回值
- awk截取字符串
- putty或xshell上用vi/vim小键盘无法使用的解决方法
- shell 脚 本 练 习 题(四)
- LINUX_bash
- shell基础应用
- bash实例
- Android项目自动编译脚本记录
- bash编程之case语句:用法格式
- Linux下关闭Shell提示音 - 漫步小者 - 博客频道 - CSDN.NET
- Linux下关闭Shell提示音 - 漫步小者 - 博客频道 - CSDN.NET
- Linux下关闭Shell提示音 - 漫步小者 - 博客频道 - CSDN.NET
- Linux下关闭Shell提示音 - 漫步小者 - 博客频道 - CSDN.NET
- On Creating New Project in VS2013: Failed to Initialize the Powershell Host
- Linux脚本编程:Bash shell脚本的大括号
- Shell脚本经典之Fork炸弹
- SHELL脚本执行方式
- windows程序托盘图标以及消息提示--基本知识(Shell_NotifyIcon)
- windows程序托盘图标以及消息提示--基本知识(Shell_NotifyIcon)
- 什么是shell,shell基础由浅入深,常用的shell命令、用法、技巧