I have a file like that:
A2M TIAM1
AARSD1 NLRP12
ABCA12 ABCA1
ABCA12 NR1H2
ABCA1 ABCA12
ABCA13 APOA2
ABCA13 CLK1
NLRP12 AARSD1
ABCA13 HAGH
ABCC10 ATP2B2
I want to get rid of the repeated values col2 col1. For example:
ABCA1 ABCA12
...and:
NLRP12 AARSD1
...in this case.
What is the best way to it in a Bash script?
col1 col2one row iscol2 col1delete duplicated 2. if the row iscol1 col2, both the col1 and col2 have appeared in the other rows(but may not be the same row), then the delete the row.; which do you want?