Shell中调用、引用、包含另一个脚本文件的三种方法
摘要:脚本first(测试示例1)first#!/bin/bashecho'yourareinfirstfile'方法一:使用source#!/b...
脚本 first (测试示例1)
first
#!/bin/bash
echo 'your are in first file'
方法一:使用source
#!/bin/bash
echo 'your are in second file'
source first
方法二:使用.
#!/bin/bash
echo 'your are in second file'
. first
方法三:使用sh
#!/bin/bash
echo 'your are in second file'
sh first
【Shell中调用、引用、包含另一个脚本文件的三种方法】相关文章:
★ Shell脚本中调用、引用、包含另外一个脚本文件的两种方法
上一篇:
利用管道实现sudo命令免输入密码的方法
下一篇:
shell命令行参数用法简介