I would like to search for files that would not match 2 -name conditions. I can do it like so :
find /media/d/ -type f -size +50M ! -name "*deb" ! -name "*vmdk"
and this will yield proper result but can I join these 2 condition with OR somehow ?
-execor any other action on thefindresults, remember to parenthese\( \)the whole criteria, otherwise-execwill apply only to the last-or-ed criterion. To work on all of them, parenthese them:find \( <criterion> -o <criterion> \) -exec <command>– Victor Sergienko Jun 13 '19 at 20:38-execdiris preferable wrt-exec– Alessandro Cuttin Jun 23 '21 at 09:02