[comp.editors] Awk global empty line removal

heroux@cemmva.cem.msu.edu (Brett Heroux) (01/29/91)

This awk program doesn't print multiple adjacent blank lines, where blank
has the loose definition of being nothing but spaces, tabs and a <CR>.

	NF != 0 { print; last = 0 }
	NF == 0 && last == 0 { print; last = 1 }

You could mail me for invocation help, it's just awk -f programfile file

Brett Heroux                                         heroux@cemvax.cem.msu.edu

"There are four kinds of people in this world: cretins, fools, morons, and
 lunatics... A normal person is just a reasonable mix of these components"

-Umberto Eco