Skip to content
Archive of posts tagged oneliners

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

Smart ranges in awk

Using flags to select ranges in awk

Working with blocks in awk

Recognize multiline blocks of text using awk

Before and after match in awk

Get lines that are n lines before or after a match.