#!/bin/sh postconf -d | awk ' BEGIN { # Skip lines with ... print "\t/<\\/*[Hh][0-9]+>/{\n\t\tp\n\t\td\n\t\t}" # Skip lines with . print "\t/<[Aa] [Nm][Aa][Mm][Ee]=/{\n\t\tp\n\t\td\n\t\t}" # Skip lines with
or
. print "\t/<[Dd][Tt]>/{\n\t\tp\n\t\td\n\t\t}" # Skip lines with . print "\t/<[Aa] [Hh][Rr][Ee][Ff]=/{\n\t\tp\n\t\td\n\t\t}" # XXX debugger_command is not listed in postconf output. print "\ts;[[:<:]]debugger_command[[:>:]];debugger_command;g" } { # Do not hyperlink word(digit). printf "\ts;[[:<:]]%s[[:>:]];%s;g\n", $1, $1, $1 } '