Lets say I have two lists:
guests-2016.txt
:
Peter Michael Frank Dirk
guests-2017.txt
:
Mark Michael Dirk Lilly
How may I create two new lists of guests
Guests that were in
guests-2016.txt
but are not inguests-2017.txt
(former_guests.txt
)Guests that were not in
guests-2016.txt
but are inguests-2017.txt
now (new_guests.txt
)
Blank lines should be ignored. Only standard utilities should be used.
My idea would be to use diff
and do some post processing.
comm
. Then add what you have tried, and explain how it did not work as you intended.