How to remove a tagged block of text in a file?
- by EmpireJones
How can I remove all instances of tagged blocks of text in a file with sed, grep, or another program?
If I have a file which contains:
random
text
// START TEXT
internal
text
// END TEXT
more
random
// START TEXT
asdf
// END TEXT
text
how can I remove all blocks of text within the start/end lines, produce the following?
random
text
more
random
text