Date: Sat, 07 Dec 2013 21:35:28 -0500
From: David Levine <levinedl(_at_)acm(_dot_)org>
Message-ID: <750-1386470128(_dot_)376161(_at_)r5-R(_dot_)W77m(_dot_)eywx>
| Ah, but it busts on Solaris:
| What's your sed equivalent of cat -s?
Sed would be a bit messier, but you really don't need it, just
slightly "less concise" awk should work, anywhere ... Try
awk 'length($0) == 0 && e == 1 { next }
{ e = length($0) == 0 }
{ print }'
which is the exact same thing as before, just less shortcuts.
(The indentation isn't important.)
kre
_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
https://lists.nongnu.org/mailman/listinfo/nmh-workers