Difference between revisions of "Bash"
From Leaky
(Created page with ' == Find the location of a script, no matter how it's referenced when run == DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo $DIR') |
(No difference)
|
Revision as of 13:23, 1 August 2013
Find the location of a script, no matter how it's referenced when run
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" echo $DIR