源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

Shell中调用、引用、包含另一个脚本文件的三种方法

  • 时间:2020-02-19 12:44 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:Shell中调用、引用、包含另一个脚本文件的三种方法
脚本 first (测试示例1) first #!/bin/bash echo 'your are in first file' [b]方法一:使用source[/b] #!/bin/bash echo 'your are in second file' source first [b]方法二:使用.[/b] #!/bin/bash echo 'your are in second file' . first [b]方法三:使用sh[/b] #!/bin/bash echo 'your are in second file' sh  first
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部