Created
August 15, 2012 06:47
-
-
Save sky-y/3357195 to your computer and use it in GitHub Desktop.
[Shell Script] Get the full path from a (non-full) filename
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
#!/bin/sh | |
#usage: | |
# $ cd /usr/bin | |
# $ fullpath vim | |
# /usr/bin/vim | |
find `pwd` -name $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment