Created
August 13, 2018 17:25
-
-
Save sgen/3ee61be3307a62ac9729a7b797ace443 to your computer and use it in GitHub Desktop.
Find path of a 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
#!/bin/bash | |
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" | |
echo "$SCRIPTPATH"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment