Include A File in a Bash Script

Last modified: 
Friday, March 27th, 2015
Topics: 
Bash

How to include (or source) a file into a bash script.

Either of these techniques should work.

. /path/to/file
source /path/to/file

References

http://tldp.org/HOWTO/Bash-Prompt-HOWTO/x237.html


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.