How can i find all filenames that match a string in a list inside a file?
I have a list_file.txt with a list of email addresses each in a new line like this:
firstname.lastname@example.org email@example.com firstname.lastname@example.org ...
In the same directory i have many files that their filenames contains one of the email addresses of the list like this: email@example.com, firstname.lastname@example.org, etc.
¿How can i copy all matching files to a new directory?