Log Parser does this too (Windows only). http://www.microsoft.com/en-us/download/details.aspx?id=2465...
It didn't use string matching to identify subsets of files to query.
And maybe the most important thing, it doesn't have the exec function to run operating system commands on the files you get back in your query results.