I would like to delete all entries with (L=6), (L=7).....(L=12) occurring in a file randomly the following format;
my input file:
TRINITY_DN1910_c0_g1_i13 GO:0005975(L=2) GO:0006022(L=4) GO:0006026(L=5) GO:0006030(L=9) GO:0006032(L=11) GO:0006040(L=6)
TRINITY_DN1452_c0_g1_i11 GO:0005975(L=3) GO:0006022(L=9) GO:0006026(L=12) GO:0006030(L=2) GO:0006032(L=4) GO:0006040(L=5)
The file is tab delimited.
Expected output
TRINITY_DN1910_c0_g1_i13 GO:0005975(L=2) GO:0006022(L=4) GO:0006026(L=5)
TRINITY_DN1452_c0_g1_i11 GO:0005975(L=3) GO:0006030(L=2) GO:0006032(L=4) GO:0006040(L=5)
6, 7, 8, 9, 10, 11, 12
or could there be holes like6, 8, 11, 12
?I would like to delete all entries with (L=6), (L=7).....(L=12)
. The end result might be the same for your current specific data but deleting everything>5
is a different problem from deleting within a specific range.