I'm looking for a modified version of the top answer to this question:
extracting unique values between 2 sets/files
awk 'FNR==NR {a[$0]++; next} !($0 in a)' file1 file2
How do i accomplish the same thing by deduplicating on field one, instead of the entire line?
File format is the following:
blah@domain.com,Elon,Tusk
I want to output only the lines from file 2 which have emails unique to file 1.
The ideal solution would allow for multiple files, rather than only 2, which all duplicated against the files before it, so you could do:
awk .... file1 file2 file3 file4 file5 file6
and somehow output 6 new files containing rows with only unique first fields to all other files before it
However, if that's too complex, just working on 2 files is fine as well