Next: , Previous: Base Name Patterns, Up: Name



2.1.2 Full Name Patterns

— Test: -wholename pattern
— Test: -iwholename pattern

True if the entire file name, starting with the command line argument under which the file was found, matches shell pattern pattern. For -iwholename, the match is case-insensitive. To ignore a whole directory tree, use -prune rather than checking every file in the tree (see Directories). The “entire file name” as used by find starts with the starting-point specified on the command line, and is not converted to an absolute pathname, so for example cd /; find tmp -wholename /tmp will never match anything.

— Test: -path pattern
— Test: -ipath pattern

These tests are deprecated, but work as for -wholename and -iwholename, respectively. The -ipath test is a GNU extension, but -path is also provided by HP-UX find.

— Test: -regex expr
— Test: -iregex expr

True if the entire file name matches regular expression expr. This is a match on the whole path, not a search. For example, to match a file named ./fubar3, you can use the regular expression .*bar. or .*b.*3, but not f.*r3. See Syntax of Regular Expressions (The GNU Emacs Manual), for a description of the syntax of regular expressions. For -iregex, the match is case-insensitive.