Terminal: Adding logic to 'find' directories containing either [criteria A] or [criteria B] I have inherited a vast media archive without a unifying organizational scheme. Its contents date back at least 10 years. I have been asked to find a needle in this hay stack, and I have some guesses as to that needle's name. But I don't know its name for certain. I want to use a single find command in the Terminal to search for alternate names. And I want to include a second set: possible file extensions. In pseudocode, here's what I mean: find [in a given directory] [files and folders whose name matches (*guess1* OR *guess2*) AND whose name matches (*.extension1 OR *.extension2)]. How should I express this in the Terminal?
You can do this using ls and grep with regular expressions

ls | grep -E "(guess1|guess2)(\.extension1|\.extension2)"


Or if you need to recursively look into folders:

ls -R | grep -E "(guess1|guess2)(\.extension1|\.extension2)"