shell include script
来源:互联网 发布:cad2016for mac汉化包 编辑:程序博客网 时间:2024/05/16 17:38
两个文件:
# cat a.sh
echo "===========hello========="
name='a.sh'
# cat b.sh
. ./a.sh //include方式: . 路径/脚本名
echo "name is $name"
执行b.sh //shell include 会执行include脚本的每一行
# sh b.sh
===========hello=========
name is a.sh
- shell include script
- shell Script
- shell script
- Shell script
- shell script
- shell script
- shell script
- shell script
- shell script
- shell script
- shell script
- shell script
- Shell Script
- shell script
- shell script
- shell script
- shell script
- shell script
- Lisp的本质(难得的入门文章)
- ConcurrentHashMap
- ios开发学习--按钮(Button)效果源码分享--系列教程1
- 又一篇深入分析ConcurrentHashMap的文章
- MyEclipse恢复误删文件和恢复文件较早版本
- shell include script
- Spring Framework 开发参考手册中文(在线HTML)
- UIApplication sharedApplication && UIApplication生命周期
- 点击回车键自动提交form的问题
- ios开发学习--按钮(Button)效果源码分享--系列教程2
- 折半(二分)查找
- hdu 1005
- 持续集成之自动部署-controlTier
- 无锁map的实现