1

[SOLVED] remove lines that have duplicate values in column two

view story
linux-howto

http://www.unix.com – Hi, I've got a file that I'd like to uniquely sort based on column 2 (values in column 2 begin with "comp"). I tried Code: sort -t -nuk2,3 file.txt But got: sort: multi-character tab `-nuk2,3' "man sort" did not help me out Any pointers? Input: Quote: gi|328725975|ref|XP_003248692.1| comp47911_c0_seq1 82.02 367 66 0 1 367 78 1178 0 603 gi|328718720|ref|XP_001946259.2| comp110820_c0_seq1 46.85 111 59 0 422 532 2 334 1.00E-31 120 gi|193617875|ref|XP_001945312.1| comp1108 (HowTos)