I have a file with a list of names:
john paul ringo george ...
Then I have a bunch of files with a lot of different names:
maria.iso jose.iso pablo.iso john.iso jack.iso jane.iso ...
I want to execute a
find command that outputs only the files that have the same name as one of the file list, or none if there's no match. In my example:
Something like this:
find . -type f -name "*.iso" (in array)
But I don't know if it's possible or where to start if it is.
So far my only idea is to code a for loop, but that seems ugly and very inefficient.