[CentOS] Bug in find command?

Steve Bergman sbergman at rueb.com
Wed Sep 27 18:31:37 UTC 2006

On Wed, 2006-09-27 at 14:20 -0400, William L. Maltby wrote:

> <snip>
> find . -iname '*.cmd' >/tmp/FilesFoundDotCmd
> find . -iname '*.c' >/tmp/FilesFoundDotC
> If *that* ain't a dot, I really need new glasses. 

You need new glasses:

find . -iname '.*.cmd' >/tmp/FilesFoundDotCmdf
find . -iname '.*.c' >/tmp/FilesFoundDotC

Of course, that would *only* get you the hidden files.

Your version would *not* find:


but it sounds like the problem is specific to the environment on your

>From the man page:

-name pattern

Base  of  file  name  (the  path  with  the leading directories
removed) matches shell  pattern  pattern.   The  metacharacters
('*',  '?',  and  '[]')  do not match a '.' at the start of the
base name. 

Note that this behavior changed in 4.2.2 so that '.' at the beginning of
a filename *are* matched.  But not in 4.2.20.

BTW, the K6-III's were great processors.  One of my favorites.  There
weren't many of them, but the 3 level cache really did make a


More information about the CentOS mailing list