Curious, that doesn’t work for me.
me@mine:/tmp> fgrep "Find\\ Me" foo.txt
me@mine:/tmp> fgrep "Find Me" foo.txt
grep works with the backslash though
me@mine:/tmp> grep "Find Me" foo.txt
me@mine:/tmp> grep "Find\\ Me" foo.txt
me@mine:/tmp> grep Find\\ Me foo.txt
I lack the energy to work out why right now.
scottjsn - I can’t work out what tool it is you’re using. Where exactly is this ‘Tools’ you’re referring to? I had a look in Application Browser but the closest I could find in the Tools section is ‘Search for Files…’ which doesn’t look like what you describe.
I find it odd that you say “more often than not” because that implies the search was sometimes successful.
One problem might be that Test.doc is presumably a Microsoft Word file and hence binary rather than plain text. If the tool you’re using only works with plain text files it might not be able to find the string you’re searching for in a Microsoft Word file.
grep or it’s variants are really the best way to search through lots of files. You can chain greps together. E.g. to find files in the working directory that contain both the words foo or Foo or FoO or FOO or any other case variant and also the word bar or any case variant
$ grep -i foo * | grep -i baa
or to just search files which start with the letter A
$ grep -i foo A* | grep -i baa
As ever, you can do fancy things using regular expressions if you feel so inclined.