First I have a dir/ consisting of 100 .txt files john_1.txt, john_2.txt, john_3.txt, john_4.txt etc, that consists of ex. id;email;name;phoneand then I have one other file emails.txt that consists of e-mail adresses listed line by line.How do I compare all the files to this emails file and print the common lines.grep or diff?
How do I compare all files in dir to another file and print output of common lines
grep;diff;file comparison