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

Smart ranges in awk, part two

Another variation on the theme

Removing newlines in text files

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

CentOS network install behind a proxy

Some messing about and voila'.

Smart ranges in awk

Using flags to select ranges in awk

Sorting by paragraph

This comes up in discussions and forums from time to time. Basically, the input is composed of paragraphs (ie, separated by runs of empty lines), and each paragraph has a specific value somewhere in it. The goal is to sort the text "by paragraph", according to this key, and the resulting output should still consist […]