Created
November 19, 2012 13:49
-
-
Save felixrabe/4110745 to your computer and use it in GitHub Desktop.
abspath
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
function abspath() { | |
cd -P -- "$(dirname -- "$1")" && | |
echo "$(pwd -P)/$(basename -- "$1")" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment