by Rahel Lüthy
This is how you recursively search all notes.txt files in your home directory (~) for the text snippet foo (from an OSX terminal):
It has at least 3 advantages over the traditional find/grep combo:
mdfind is the terminal version of Spotlight: It is blazingly fast because it uses an indexmdfind does not lead to “Permission denied” noise-0 flag works around spaces in file/folder namesHappy searching!