If you're familiar with regular expressions, you can use the
-regex
option to limit the output to filenames that match a
pattern. And similar to the -iname
option, there is a
corresponding -iregex
option that ignores case in the pattern.
For example:
Note that unlike many programs, find
requires that the regex
specified matches the entire path, not just a part of it. For that reason,
specifying the leading and trailing .*
is necessary; purely using
xt
would not be sufficient.