Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!crdgw1!barnett From: barnett@grymoire.crd.ge.com (Bruce Barnett) Newsgroups: comp.unix.shell Subject: Re: deleting some empty lines with sed Message-ID: Date: 3 May 91 16:51:28 GMT References: <1991Apr27.143519.26256@daimi.aau.dk> <281DB41B.9E6@marob.uucp> <1991May02.005009.27947@vpnet.chi.il.us> Sender: news@crdgw1.crd.ge.com Reply-To: barnett@crdgw1.ge.com Organization: GE Corp. R & D, Schenectady, NY Lines: 12 In-reply-to: dattier@vpnet.chi.il.us's message of 2 May 91 00:50:09 GMT In article <1991May02.005009.27947@vpnet.chi.il.us> dattier@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@crdgw1.ge.com uunet!crdgw1!barnett