Created
March 1, 2017 17:43
-
-
Save pca2/4e98d271b6b221e95c19a61edf1912db to your computer and use it in GitHub Desktop.
bash containing directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#return the containing directory of file | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment