I have two files, and I would like to get a new file with only the lines that we have in the first file, but not in the second one. Example:
file1:
ID firstname lastname
1 John Wilkens
2 Andrea Smith
3 Matthew Freberg
4 Brenda Something
file2:
ID firstname lastname
1 John Wilkens
2 Andrea Willems
3 Jay Freberg
5 Mike Hart
Output:
ID firstname lastname
4 Brenda Something
I tried using comm, but that also gives the rows where something was changed, so for example the ID 2 and 3.
Can you please help me with this?