How to remove lines from stdin between and including the 2 lines as fields in a sed expression:
sed "/textline1/,/textline2/d"
This will delete from the input all lines between a line containing the text ‘textline1’ and ‘textline2’.
If you have a / char in either textline entry then you should replace it with the two characters inside the quotes of: ‘\/’
Being “backslash forwardslash” <- with no space between the characters.
FYI,
Richard.