Something that everybody needs to do sooner or later.
Archive of posts tagged sed
Working with blocks in sed
How to recognize blocks of text with sed
Using different delimiters in sed
How to make sed programs more readable
How to match newlines in sed
It doesn't work the way you think, but it does work