If the line starts with > and the to upper case transformed text of the line contains the word HYPOTHETICAL set the value of bool to 1.
/^>/ && toupper($0) !~ /HYPOTHETICAL/ {bool=0};
If the line starts with > and the to upper case transformed text of the line doesn't contain the word HYPOTHETICAL set the value of bool to 0.
{if (bool==0) print}
If bool is set to 0 print the line. This is the case for the header line that doesn't have HYPOTHETICAL in and all lines that follows until the next line start starts with > and the check about the word HYPOTHETICAL is done again.
If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.
Please use appropriate tags.
software error
is not an appropriate tag here.biodano.geo - See how the tags are more relevant now. Please invest more effort into future posts.