0

Despite many attempts I cannot get the single character wildcard to work. I need to match exactly 3letter-3charcaters pattern. It should be simple, yet it doesn't work even in a simplified version:

% mdfind -onlyin '/Users/greg/Documents/Test'  "(kMDItemFSName == 'BIO-11*'c)"
/Users/greg/Documents/Test/BIO-110
% mdfind -onlyin '/Users/greg/Documents/Test'  "(kMDItemFSName == 'BIO-11?'c)"
% mdfind -onlyin '/Users/greg/Documents/Test'  "(kMDItemFSName == 'BIO-1??'c)"
% echo $?
0
%

I cannot use * instead since it overmatches if used as (kMDItemFSName == '*-*'c).

You must log in to answer this question.

Browse other questions tagged .