I am not able to figure out how can I do case-insensitive search using the find command.

I tried

find . -name -i pattern

And it does not work.

link|improve this question
feedback

migrated from stackoverflow.com Apr 29 '11 at 22:58

This question came from our site for professional and enthusiast programmers.

2 Answers

Use this:

find . -iname PatTeRn -print
link|improve this answer
feedback

I believe it's: find . -iname pattern

From man find:

-iname pattern
       Like  -name, but the match is case insensitive.
link|improve this answer
feedback

Your Answer

 
or
required, but never shown