sed script to combine blank lines?

David Sherman dave at lsuc.uucp
Mon Oct 17 08:49:47 AEST 1988


Some versions of UNIX (including 4.1BSD) include a program
call ssp(1) which does this; it's a bit faster than the
parallel awk script.

Also, if you know your text doesn't contain duplicate lines
(nroff output almost always qualifies, for example), good
old uniq(1) will do it.

David Sherman
-- 
{ uunet!attcan  att  pyramid!utai  utzoo } !lsuc!dave



More information about the Comp.unix.questions mailing list