Muriel_Gros-Baltha
February 3rd, 2014, 05:43 PM
Hello !
I have this tab-delimited file :
KE339719.1 13 0/0:2,0:2:33:0,33,428 0/0:1,0:1:9:0,9,148
KE332739.1 14 md 0/0:3,1:4:15:0,15,276
KE336330.1 14 0/1:5,12:17:99:157,0,382 0/1:2,7:9:99:100,0,147
In the third and fourth column, I want to delete everything that is after ":", to obtain :
KE339719.1 13 0/0 0/0
KE332739.1 14 md 0/0
KE336330.1 14 0/1 0/1
I wanted to combine awk and sed but don't manage to find a solution :(
Any help ?
Thanks !
Muriel
I have this tab-delimited file :
KE339719.1 13 0/0:2,0:2:33:0,33,428 0/0:1,0:1:9:0,9,148
KE332739.1 14 md 0/0:3,1:4:15:0,15,276
KE336330.1 14 0/1:5,12:17:99:157,0,382 0/1:2,7:9:99:100,0,147
In the third and fourth column, I want to delete everything that is after ":", to obtain :
KE339719.1 13 0/0 0/0
KE332739.1 14 md 0/0
KE336330.1 14 0/1 0/1
I wanted to combine awk and sed but don't manage to find a solution :(
Any help ?
Thanks !
Muriel