shell文件包含 实例 实例 . filename 或 source filename 创建两个shell脚本文件 test1.sh代码如下 url="http://www.baidu.com" test2.sh代码如下 . ./test1.sh echo "网站为:$url"