Skip to content
Archive of posts filed under the sed category.

Text replacement in context/out of context

An added twist to the usual search/replace problems.

Look for multiple patterns in files

One of the most FAQ of all times.

“In-place” editing of files

Temporary files don't bite, so just use them.

Removing newlines in text files

A task that comes up every so often, for some reason

Working with blocks in sed

How to recognize blocks of text with sed