Created
January 8, 2012 13:27
-
-
Save al3xandru/1578357 to your computer and use it in GitHub Desktop.
Anyone could explain this mdfind (Spotlight) search results
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- first query looks for files containing both xhadoopx and xhbasex | |
'( kMDItemTextContent == "*xhadoopx*"wc && kMDItemTextContent == "*xhbasex*"wc )' | |
-- 2nd query searches for the same files but should filter out those containing xmapreducex | |
'( kMDItemTextContent == "*xhadoopx*"wc && kMDItemTextContent == "*xhbasex*"wc && kMDItemTextContent != "-xmapreducex"wc )' | |
-- but both return the same set of results |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment