3 # finds the same file name within a hierarchy, if possible.
8 if [ -z "$name" -o -z "$search_dir" ]; then
9 echo This script needs two parameters, the filename to look for and the
10 echo directory hierarchy to look for it in.
14 # just get the filename or directory name component at the end.
15 name="$(basename "$name")"
17 find "$search_dir" -iname "$name"