Well the question says it all, I have seen both
find -name
and
find -iname
used all over the place without a discernible pattern.
Could somebody explain the differences, perhaps with an example to clarify?
From the GNU find
manual page:
-iname pattern
Like -name, but the match is case insensitive. For example, the
patterns `fo*' and `F??' match the file names `Foo', `FOO',
`foo', `fOo', etc.
-iname
is not part of the standard, but it is supported by various find implementations. So -iname is available in many but not in all cases.
man find
and read the manual. (Or as I would do, googlefind flags
and then use search to find the flag in question)