-2

Consider a file which has contents as given below. I need to extract only the sections which are bookended (or surrounded, if you prefer) by the delimiter ----End----, into another file.
one
two
three
---------End---------------
four
five
six
---------End--------------
three
two
--------End----...