Hi all,
I have 2 files, the first contains the following:
...
John Allen Smith II 16 555-555-5555 10/24/2010
John Allen Smith II 3 555-555-5555 10/24/2010
John Allen Smith II 17 555-555-5555 10/24/2010
John Doe 16 555-555-5555 10/24/2010
Jane Smith 16 555-555-5555 9/16/2010
Jane Smith 00 555-555-5555 10/24/2010
...
and the second file is a list of names so...
...
John Allen Smith II
John Doe
Jane Smith
...
Is it possible to use awk (or other bash command) to print the lines in the first file that match any name in the second file (the names can repeat in the first file)
Bonus? Is there an easy way to remove those repeated/duplicate lines in the first file?
Thanks very much,
Tomek