From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Ik2nc-0005wm-QW for garchives@archives.gentoo.org; Mon, 22 Oct 2007 19:18:53 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l9MJI0Iu000740; Mon, 22 Oct 2007 19:18:00 GMT Received: from caine.easynet.fr (smarthost151.mail.easynet.fr [212.180.1.151]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l9MJG1jq030841 for ; Mon, 22 Oct 2007 19:16:01 GMT Received: from easyconnect2121138-64.clients.easynet.fr ([212.11.38.64] helo=eusebe) by caine.easynet.fr with esmtp (Exim 4.63) (envelope-from ) id 1Ik2kq-0006en-TU for gentoo-dev@lists.gentoo.org; Mon, 22 Oct 2007 21:16:01 +0200 Date: Mon, 22 Oct 2007 21:15:40 +0200 From: Thomas de Grenier de Latour To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] striping blank lines (was: stripping out the DO NOT REPLY from bugzie emails) Message-ID: <20071022211540.19e751f3@eusebe> In-Reply-To: <1193075875.16410.8.camel@localhost> References: <46FD8EBA.10205@gentoo.org> <200709290705.32201.vapier@gentoo.org> <1193069377.9505.56.camel@localhost> <200710221921.56658.mail@eliasprobst.eu> <1193075875.16410.8.camel@localhost> Organization: Fasmz X-Mailer: Claws Mail 3.0.2 (GTK+ 2.12.0; i686-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 557a197f-49e1-4446-b0e6-e5327c71315c X-Archives-Hash: cd9e134d2b0ddb217e6a6315ad1c7d8a On 2007/10/22, Peter Volkov wrote: >=20 > =D0=92 =D0=9F=D0=BD=D0=B4, 22/10/2007 =D0=B2 19:21 +0200, Elias Probst = =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > To delete empty lines with sed, just do a > > sed '/^$/d' > > I hope that's what you're looking for. >=20 > No. awk command in the previous mail substituted 2 or more empty lines > with exactly one empty line. Your command makes mail less readable. >=20 One of this two commands should do the trick (depending whether you're after empty lines or blank lines):=20 '/./,/^$/!d' or '/[^[:space:]]/,/^[[:space:]]*$/!d' -- TGL. -- gentoo-dev@gentoo.org mailing list