Created
July 24, 2015 13:06
-
-
Save PaulChana/bd216e5f2f865d2a2371 to your computer and use it in GitHub Desktop.
Relative To Abs Path in Bash using Python
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
the_path=$(python -c "import os,sys; print os.path.realpath(sys.argv[1])" "../../some/relative/path") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment