An added twist to the usual search/replace problems.
Archive of posts filed under the sed category.
One of the most FAQ of all times.
Temporary files don't bite, so just use them.
A task that comes up every so often, for some reason
How to recognize blocks of text with sed