You can look for particular files by using a regular expression
with metacharacters
(
shell wildcards, not
grep
-like expressions (
26.2
)
)
as an argument to the
-name
operator.
Because the shell also understands these metacharacters, it
is necessary to
quote (
8.14
)
them
so they are passed to
find
unchanged. Any kind of quoting can be used:

Any directory along the path to the file is not matched with the
-name
operator, merely the name at the end of the path.
For example, the commands above would not match the pathname
./subdir.o/afile
-but they would match
./subdir.o
and
./src/subdir/prog.o
.