Gentoo Archives: gentoo-dev

From: Elias Probst <mail@×××××××××××.eu>
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 17:21:27
Message-Id: 200710221921.56658.mail@eliasprobst.eu
In Reply to: Re: [gentoo-dev] striping blank lines (was: stripping out the DO NOT REPLY from bugzie emails) by Peter Volkov
1 Am Montag, 22. Oktober 2007 18:09:37 schrieb Peter Volkov:
2 > | awk '{ if ( $0 == "" ) {el++;} else { if (el>0) print ""; el=0; print $0
3 > | ;}}'
4 >
5 > I'm not sure that this is the best approach but I did not found a way
6 > how to do this with sed. If it's possible I'd like to know how, so I
7 > could just add another -e 'script' to existing "DO NOT REPLY" striping
8 > recipe.
9
10 To delete empty lines with sed, just do a
11 sed '/^$/d'
12 I hope that's what you're looking for.
13
14 Regards, Elias P.
15
16 --
17 A really nice number:
18 "09:F9:11:02:9D:74:E3:5B:D8:41:56:C5:63:56:88:C0"

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies