16.Shell 文件包含
Shell 文件包含
1.. filename # 注意点号(.)和文件名中间有一空格1.source filename1.#!/bin/bash
2.
3.
4.url="https://fatcatsk.github.io/"1.#!/bin/bash
2.
3.#使用 . 号来引用test1.sh 文件
4.. ./test1.sh
5.
6.# 或者使用以下包含文件代码
7.# source ./test1.sh
8.
9.echo "shell学习笔记网地址:$url"Last updated