I have a text file with several columns separated by tab character as below:
1 ATGCCCAGA AS:i:10 XS:i:10 2 ATGCTTGA AS:i:10 XS:i:5 3 ATGGGGGA AS:i:10 XS:i:1 4 ATCCCCGA AS:i:20 XS:i:20
I now want to compare the last two columns AS:i:(n1) and XS:i:(n2) to obtain only lines with n1 different to n2. So, my desired output would be:
2 ATGCTTGA AS:i:10 XS:i:5 3 ATGGGGGA AS:i:10 XS:i:1
Could you suggest me some ways that I can compare n1 and n2 and print out the output? Thanks in advance.