How to access partitions for which there's no device
Archive of posts filed under the tips category.
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 […]
Linux bridge: MAC addresses and dynamic ports
Scenario: KVM virtualization host running several bridged guests. The host has a bridge interface br0 that starts out containing only eth0, and other interfaces are dynamically added and removed from the bridge as guests are started and stopped. The problem is, the host seems to randomly suffer some loss of connectivity (from a few to […]
Working with blocks in awk
Recognize multiline blocks of text using awk