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:
[email protected]
[email protected]
[email protected]
...
In the same directory i have many files that their filenames contains one of the email addresses of the list like this: [email protected], [email protected], etc.
¿How can i copy all matching files to a new directory?