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?
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?
Use the -iname option instead of -name.
find . -iname '*string*'-iname is not a Posix find option. Posix does specify shell pattern matching for -name.Or you could use find / | grep -i string
find does this natively. Creating another process just to do that is going to make it slower.-name, it is true.This works as well, if you want to avoid the single quotes:
find . -iname \*string\*