I am using a Macbook Pro with MacOS High Sierra. I have recently moved from Windows so I am quite new to Mac.
I have a folder of Xml files. I am trying to find the set of one type of the Xml file and drag that set of files into my Xml Editor to work on.
In Finder on Mac, create a directory in my Documents folder called "
In that folder create one file called
foo.xml with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <foo> Hello </foo>
Then, create another file in that folder called
bar.xml with the following content:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <bar> <fooIAmNot> I am not the file you are looking for. </fooIAmNot> </bar>
Note how a Finder Search within the
ExactSearchGui folder for "
<foo>" finds any file containing
foo including the file we don't want.
As I understand it from this question, Finder Search and Spotlight return false positives, So, I am looking for a method to search for an exact phrase within a set of text files using a graphical user interface on MacOS without producing false positives such as this. On a PC I would use grepWin to achieve the result. So, if you know some similar solution, or a native technique, it would be appreciated.