Created Wed Jul, 14 2021 at 01:51AM
Sample text
$ cat text foo bar this is some text <tag>baz </tag> other stuff
now to remove the middle three lines you can do this
$ cat text | sed '/<tag>/,/<\tag>/d' foo bar this is some text other stuff