deleting some empty lines with sed
Bruce Barnett
barnett at grymoire.crd.ge.com
Sat May 4 02:51:28 AEST 1991
In article <1991May02.005009.27947 at vpnet.chi.il.us> dattier at vpnet.chi.il.us (David W. Tamkin) writes:
>The question is how to squeeze all consecutive blank lines to a
>single blank line (which is what cat -s does on a BSD system).
>Removing all blank lines and getting solid blocks of text is not the
>answer!
No one mentioned uniq(1) as a possible solution. Of course it isn't a
good idea if you have identical consecutive non-empty lines....
--
Bruce G. Barnett barnett at crdgw1.ge.com uunet!crdgw1!barnett
More information about the Comp.unix.shell
mailing list