www.delorie.com/gnu/docs/findutils/find_7.html   search  
 
Buy GNU books!


Finding Files

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.1.1 Base Name Patterns

Test: -name pattern
Test: -iname pattern
True if the base of the file name (the path with the leading directories removed) matches shell pattern pattern. For `-iname', the match is case-insensitive. To ignore a whole directory tree, use `-prune' (see section 2.9 Directories). As an example, to find Texinfo source files in `/usr/local/doc':

 
find /usr/local/doc -name '*.texi'


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright © 2003   by The Free Software Foundation     Updated Jun 2003