Skip to content

Instantly share code, notes, and snippets.

@sky-y
Created August 15, 2012 06:47
Show Gist options
  • Save sky-y/3357195 to your computer and use it in GitHub Desktop.
Save sky-y/3357195 to your computer and use it in GitHub Desktop.
[Shell Script] Get the full path from a (non-full) filename
#!/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