Created
July 16, 2014 08:08
-
-
Save aarondai/cdbde0199fd47e841f7b to your computer and use it in GitHub Desktop.
BASH: Get Relative Path
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
python -c "import os.path; print os.path.relpath('/foo/bar', '/foo/baz/foo')" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment