It would be easier for us to read your message if you include the data in [ code ] blocks. Besides being easier to read, you will preserve extra spaces, etc. which may be important in finding matches.
Also, you should have included information after the block of data you are interested in. That can be important in matching the end of the range.
Code:
# rLTR = right LTR
# TSD = target site duplication
# sim = similarity
# seq-nr = sequence number
6698717 6726836 28120 6698717 6700002 1286 gtattt 6 tg..ca 6725526 6726836 1311 gtattt 6 tg..ca 92.91 0
11976957 11982399 5443 11976957 11977421 465 tcgat 5 tg..ca 11981926 11982399 474 tcgat 5 tg..ca 95.57 0
10519667 10531374 11708 10519667 10519811 145 tgtaat 6 tg..ca 10531262 10531374 113 tgtaat 6 tg..ca 73.10 0
6217747 6240561 22815 6217747 6218145 399 tgtca 5 tg..ca 6240095 6240561 467 tgtca 5 tg..ca 80.51 0
4433924 4439787 5864 4433924 4434036 113 ctaaaa 6 tg..ca 4439674 4439787 114 ctaaaa 6 tg..ca 81.58 0
14572614 14600318 27705 14572614 14573462 849 ctagga 6 tg..ca 14599416 14600318 903 ctagga 6 tg..ca 86.38 0
# dummy line after
Code:
sed -n '/seq-nr/,/^#/{
/^#/!p }' temp
6698717 6726836 28120 6698717 6700002 1286 gtattt 6 tg..ca 6725526 6726836 1311 gtattt 6 tg..ca 92.91 0
11976957 11982399 5443 11976957 11977421 465 tcgat 5 tg..ca 11981926 11982399 474 tcgat 5 tg..ca 95.57 0
10519667 10531374 11708 10519667 10519811 145 tgtaat 6 tg..ca 10531262 10531374 113 tgtaat 6 tg..ca 73.10 0
6217747 6240561 22815 6217747 6218145 399 tgtca 5 tg..ca 6240095 6240561 467 tgtca 5 tg..ca 80.51 0
4433924 4439787 5864 4433924 4434036 113 ctaaaa 6 tg..ca 4439674 4439787 114 ctaaaa 6 tg..ca 81.58 0
14572614 14600318 27705 14572614 14573462 849 ctagga 6 tg..ca 14599416 14600318 903 ctagga 6 tg..ca 86.38 0
I assumed that the line after the data would start with a #. So I selected the range "/seq-nr/,/^#/" and then printed a subrange of that for lines that don't start with a #.
Compare this to " /sbin/lspci -v | sed -n '/Ethernet/,/^$/p'" which will extract the information on your ethernet devices. This takes advantage of the fact that the records are separated by blank lines. To bad your program doesn't do that.