how can I remove duplicate lines from the data set in a .txt file because the problem is that half content of my lines are repeated and I want only first RESULT line. I tried to use the command but this didn't work well
sort myfile.txt uniq -u | newfile.txt
here is the content of my file and my lines of my file are 299873
ligand_06278/out.pdbqt:REMARK Name = 22626427
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.3 2.094 2.612
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.3 2.821 8.000
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.4 3.333 6.628
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.4 4.526 7.557
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.5 2.500 4.835
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.5 2.516 7.135
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.6 2.660 7.148
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.8 3.141 6.023
ligand_06278/out.pdbqt:REMARK VINA RESULT: -8.9 0.000 0.000
ligand_06279/out.pdbqt:REMARK Name = 22629712
ligand_06279/out.pdbqt:REMARK VINA RESULT: -6.1 9.841 13.115
ligand_06279/out.pdbqt:REMARK VINA RESULT: -6.3 15.483 18.543
ligand_06279/out.pdbqt:REMARK VINA RESULT: -6.3 1.944 5.962
ligand_06279/out.pdbqt:REMARK VINA RESULT: -6.3 8.946 12.260
ligand_06279/out.pdbqt:REMARK VINA RESULT: -6.5 14.453 17.240
ligand_06279/out.pdbqt:REMARK VINA RESULT: -6.8 10.330 14.145
ligand_06279/out.pdbqt:REMARK VINA RESULT: -6.8 1.727 5.848
ligand_06279/out.pdbqt:REMARK VINA RESULT: -7.1 7.429 11.509
ligand_06279/out.pdbqt:REMARK VINA RESULT: -7.3 0.000 0.000
ligand_06280/out.pdbqt:REMARK Name = 22631372
ligand_06280/out.pdbqt:REMARK VINA RESULT: -10.0 3.811 7.264
ligand_06280/out.pdbqt:REMARK VINA RESULT: -10.1 0.000 0.000
ligand_06280/out.pdbqt:REMARK VINA RESULT: -9.3 5.006 9.020
ligand_06280/out.pdbqt:REMARK VINA RESULT: -9.4 2.195 8.687
ligand_06280/out.pdbqt:REMARK VINA RESULT: -9.4 2.712 9.301
ligand_06280/out.pdbqt:REMARK VINA RESULT: -9.6 2.186 8.354
ligand_06280/out.pdbqt:REMARK VINA RESULT: -9.7 5.168 7.981
ligand_06280/out.pdbqt:REMARK VINA RESULT: -9.8 1.961 2.580
ligand_06280/out.pdbqt:REMARK VINA RESULT: -9.8 2.311 8.341