#!/usr/bin/awk -f BEGIN { found = 0; space = ""; } /^#?probe .* =/ { print $0; space = sprintf("%*s", index($0, "=") - index($0, "#") + 1, " ") found = 1; next; } /^#?[\t ]+/ { if (found) { sub(/[\t ]+/, space, $0); print $0; next; } } { found = 0; print $0; }