Created
March 23, 2011 21:18
-
-
Save ilkerde/884012 to your computer and use it in GitHub Desktop.
Canonical (absolute) path of a running BASH script
This file contains hidden or 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
SCRIPT=$(realname -f $0) | |
SCRIPTPATH=`dirname $SCRIPT` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment