On 2007/10/22, Peter Volkov <[EMAIL PROTECTED]> wrote:
>
> В Пнд, 22/10/2007 в 19:21 +0200, Elias Probst пишет:
> > To delete empty lines with sed, just do a
> > sed '/^$/d'
> > I hope that's what you're looking for.
>
> No. awk command in the previous mail substituted 2 or more empty lines
> with exactly one empty line. Your command makes mail less readable.
>
One of this two commands should do the trick (depending whether you're
after empty lines or blank lines):
'/./,/^$/!d'
or '/[^[:space:]]/,/^[[:space:]]*$/!d'
--
TGL.
--
[EMAIL PROTECTED] mailing list