November 24, 2015

bash get script directory

DIR=$(dirname "$(readlink -f "$0")")
echo $DIR

No comments:

Post a Comment