Swapping of columns in a file and remove duplicates
- by LucaB
Hi all
i have a file like this:
term1 term2
term3 term4
term2 term1
term5 term3
..... .....
what i need to do is to remove duplicates in any order they appear, such as:
term1 term2
and
term2 term1
is a duplicate to me.
It is a really long file, so I'm not sure what can be faster.
Does anyone has an idea on how to do this? awk perhaps?