-
-
Save tobym/4757945 to your computer and use it in GitHub Desktop.
pwdx for mac, updated
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 | |
lsof -a -p $1 -d cwd -Fn | tail -1 | sed 's/.//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This version fixes the bug that broke output when the path had a space in it.