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:   root@localhost# cat ss.txt BEGIN ID:45 LS:33 END BEGIN ID:50 LS:33 END BEGIN ID:47 LS:33 END BEGIN ID:55 LS:35 END   Now consider we want to delete the BEGIN/END block,  containing “ID:45”: [gryzli@localhost temp]$ cat ss.txt… Continue reading Sed – Deleting Multiline Patterns