I have a text file that looks like:
text texttext texttext texttext texttext text
text texttext texttext texttext text
==========[start log]====
..
..
..
==============
testtextexttexttesttextexttext
testtextexttexttesttextexttext
==========[start log]====
..
..
..
==============
So I want to create a new file that just has the blocks of:
==========[start log]===
..
..
..
=============
All === blocks have 2 blank lines below them.
The ... inside the blocks is actually text.
1 Answer