I need to print out lines (from multiple files) starting from a string "Server error:" to a line above the string "server info", only if I see a pattern /Btree/ within this text block.
I tried using the flip-flop operator but it did not give me the desired result. The grep -B# -A# works but the number of
lines within the text block may vary. Hence the grep approach
does not suit me.
Can you send me your thoughts?