Search code examples
linuxsearchcase-insensitive

Ignore case when trying to match file names using find command in Linux


Right now, all I know to use is:

find / -name string.*

that is case sensitive and it won't find files named:

1string.x
STRing.x
string1.x

How can I search so that all the above would be returned in the search to a case-insensitive matching?


Solution

  • Or you could use find / | grep -i string