shell 包含其他shell脚本的方法
2016-03-02 10:44
260 查看
举例说明:
一:如果要包含脚本/etc/function.sh,则可以使用 . /etc/function.sh
二:如果要包含文件夹/lib/network/下的所有脚本,则可以使用include /lib/network/
一:如果要包含脚本/etc/function.sh,则可以使用 . /etc/function.sh
二:如果要包含文件夹/lib/network/下的所有脚本,则可以使用include /lib/network/
相关文章推荐
- shell for 与if多条件实例
- shell变量
- 排序算法之shell排序
- PowerShell 抓取网络日志
- PowerShell 抓取网络日志
- Linux shell script
- 学习心得之bash script
- shell 编程光速入门与实战
- Ad Hoc Distributed Queries / xp_cmdshell 的启用与关闭
- shell变量
- 鸟哥的Linux私房菜-----10、学习Bash
- Query in Java as in Mongo shell 【Jongo】
- Linux学习笔记:shell的初次使用
- powershell 生成随机用户信息
- shell读取文件的方法
- PowerShell图形化编程2-快速入门
- bash的基本功能(重定向、管道符、通配符)
- 运维日志排查常用shell
- Shell入门——shell特性、变量
- shell脚本手记