The question is: The question is:
I have 2 csv files, one of them has only one email column with several lines of valid emails, I also have another file that has the same emails and some more, in this file there are other columns like Country, City, Name etc. .
My goal is to filter the second file all lines in which email is present the file of valid emails + invalid + info (country, city, etx ..) Like this:
Valid email file:
email |
------------------
[email protected]
------------------
Valid email file + invalid + info:
email | name | city | country
------------------------------
[email protected] | Miguel | Porto | PT
------------------------------------------
[email protected] | Invalid | Lisbon | PT
The result should be all valid emails + info:
email | name | city | country
------------------------------
[email protected] | Miguel | Porto | PT
------------------------------------------
Files contain thousands of lines, not possible to erase line by line. How can I do this? Thanks!