Gentoo Archives: gentoo-dev

From: Thomas de Grenier de Latour <degrenier@×××××××××××.fr>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] striping blank lines (was: stripping out the DO NOT REPLY from bugzie emails)
Date: Mon, 22 Oct 2007 19:18:53
Message-Id: 20071022211540.19e751f3@eusebe
In Reply to: Re: [gentoo-dev] striping blank lines (was: stripping out the DO NOT REPLY from bugzie emails) by Peter Volkov
1 On 2007/10/22, Peter Volkov <pva@g.o> wrote:
2
3 >
4 > В Пнд, 22/10/2007 в 19:21 +0200, Elias Probst пишет:
5 > > To delete empty lines with sed, just do a
6 > > sed '/^$/d'
7 > > I hope that's what you're looking for.
8 >
9 > No. awk command in the previous mail substituted 2 or more empty lines
10 > with exactly one empty line. Your command makes mail less readable.
11 >
12
13 One of this two commands should do the trick (depending whether you're
14 after empty lines or blank lines):
15 '/./,/^$/!d'
16 or '/[^[:space:]]/,/^[[:space:]]*$/!d'
17
18 --
19 TGL.
20 --
21 gentoo-dev@g.o mailing list