1 2 3 4 5 6 7 8
# sed script for BFD header files # Merge adjacent blank lines. Loop til no change. :blin /^$/,/^ *[^ ]*.*$/{ /^$/N s/^ *\n *$// } t blin