Date:        Sat, 07 Dec 2013 21:35:28 -0500
    From:        David Levine <[email protected]>
    Message-ID:  <[email protected]>

  | 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
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to