Is there a way to ask
mdfind to search for filenames with an exact filename ?
At some point in a pipe I have this:
(filenames are produced here) | while read f; do mdfind -name "$f" | grep -E "/$f";
I have two problems:
if the filename contains a
grep: repetition-operator operand invalid
if the filename contains a parenthesis, the result is empty.
How can I fix this ?