Hi,
I have following input file:
niki niki
niki1 niki
niki2 niki,niki2
niki3 niki,niki3,niki
niki4 niki4,blabla
niki5 jkjkl
niki6 niki60,niki6
I would like to delete lines with identical matches completely and remove the selfmatches in the other lines.
Expected output:
niki1 niki
niki2 niki
niki3 niki,niki
niki4 blabla
niki5 jkjkl
niki6 niki60
Is that somehow possible?
I tried several things with awk but I can not find a way to solve it properly.
I hope someone can help here.
Thanks!