Sed – Deleting Multiline Patterns

Published on Author gryzli

Here is an easy way to delete multiline patterns with sed.   Let say we have the following pattern:  

  Now consider we want to delete the BEGIN/END block,  containing “ID:45”:

  And here is some explanation of the command run above: