Last active
March 24, 2020 11:42
-
-
Save benwei/1ca893314f8ce59c13d1 to your computer and use it in GitHub Desktop.
get script's location path
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
t="${0%%`basename $0`}"; cd "$t" ; ABS_PATH=`pwd` | |
echo $ABS_PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment