sky-y
8/15/2012 - 6:47 AM

[Shell Script] Get the full path from a (non-full) filename

[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