The usage of "source ./xxx.sh"
来源:互联网 发布:js多图上传预览 编辑:程序博客网 时间:2024/06/12 00:57
在shell脚本中定义了一些函数
使用 source xxx.sh之后, 就可以在shell中直接执行这些函数
[frank@apollo misc]$ cat test_function.sh
# /bin/sh
function hellofunc () {
echo "hello"
}
[frank@apollo misc]$ source ./test_function.sh
这时就可以在console中执行"hellfunc"命令
[frank@apollo misc]$ hellofunc
hello
- The usage of "source ./xxx.sh"
- source xxx.sh脚本 与 ./xxx.sh脚本的区别
- The usage of finalize()
- usage of the serialVersionUID
- the usage of lucene
- The usage of SQLPATH
- the usage of sscanf()
- the usage of vim
- The usage of #pragma
- The usage of InjectView
- usage.sh
- Usage of the vc timer
- The Usage of map::insert
- The Usage of Java Timer
- the usage of keyword const
- the usage of android viewpage
- The usage of V$PGA_TARGET_ADVICE
- the usage of String.trim()
- 资源包与国际化
- 在Dynamics CRM 的 Entity Form中显示记录的ID的方法
- 单元测试工具BoundsChecker使用方法
- 今天修正了一个SMD数据库的BUG
- Qt SQL 操作
- The usage of "source ./xxx.sh"
- 删除文件夹中的全部文件
- How to NFS Mount a cdrom Filesystem
- javascript html radio 的 选择与取消
- qt的国际化(转)
- 测试
- [转]什么是WMI
- 硬盘文件丢失,启动报错ORA-01157
- How to NFS Mount a cdrom Filesystem