I'm using bash for Mac OS X 10.6.8.
find command, I would like to search for files that match
*.XML. However, I would like to match only those files in the
16xxxx sub-directory and not
16yyyy from some base directory.
basedir/16xxxx/EX1.XML basedir/16xxxx/EX2.XML basedir/16yyyy/EX3.XML basedir/16yyyy/EX4.XML
The results I'm looking for would be
EX2.XML (full path name excluded for clarity).
This is in the context of a BASH script which would make it convenient if I could enter
16xxxx/*.XML as the expression to pass to
-name in the
find basedir -name '16xxxx/*.XML'
However, this does not return any matches because the shell doesn't match the
/ character. Is there some argument to pass to
find or a way to escape the
16xxxx/\*.XML expression that will return the results I need?