Issue
I have a block of text that looks like this:
<!-- BOF CLEAN -->
... a bunch of stuff
<!-- EOF CLEAN -->
I'd like to remove this entire block. What's the sed command?
Solution
$ cat text
abc
<!-- BOF CLEAN -->
... a bunch of stuff
<!-- EOF CLEAN -->
def
$ sed '/<!-- BOF CLEAN -->/,/<!-- EOF CLEAN -->/d' text
abc
def
http://www.catonmat.net/blog/sed-one-liners-explained-part-three/
Answered By - Maxim Egorushkin Answer Checked By - Senaida (WPSolving Volunteer)