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 |