mdfind -onlyin wildcard without pipe Can -onlyin contain wildcards?

mdfind pattern -onlyin '*bin'


I know this works:

mdfind pattern | grep bin
No, mdfind's -onlyin does not perform pathname expansion nor tilde expansion and only accepts explicit pathnames. You can have multiple -onlyin options.