Skip to content

Instantly share code, notes, and snippets.

@al3xandru
Created January 8, 2012 13:27
Show Gist options
  • Save al3xandru/1578357 to your computer and use it in GitHub Desktop.
Save al3xandru/1578357 to your computer and use it in GitHub Desktop.
Anyone could explain this mdfind (Spotlight) search results
-- 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