I have input like the following:
>gi|481443199|gb|MH447771.1|
49 0 0 0 1
50 0 0 1 0
>gi|987078004|gb|RTYJ01067061.1|
412 0 0 1 0
413 1 0 0 0
>gi|557075006|gb|ERTJ01078061.1|
41 0 0 1 0
41 1 0 0 0
>gi|787073002|gb|WERJ01045061.1|
612 0 0 1 0
613 1 0 0 0
>gi|887079001|gb|WERJ01045061.1|
715 0 0 1 0
716 1 0 0 0
I want to print some lines, but skip every other line that starts with > (along with all the lines after it, until the subsequent >). For the example input above, the output would be:
>gi|481443199|gb|MH447771.1|
49 0 0 0 1
50 0 0 1 0
>gi|557075006|gb|ERTJ01078061.1|
41 0 0 1 0
41 1 0 0 0
>gi|887079001|gb|WERJ01045061.1|
715 0 0 1 0
716 1 0 0 0
How can I do that?
