This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Remove trailing blank lines when generating INSTALL
- From: Roland McGrath <roland at hack dot frob dot com>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 28 Jun 2013 15:27:21 -0700 (PDT)
- Subject: Re: Remove trailing blank lines when generating INSTALL
- References: <Pine dot LNX dot 4 dot 64 dot 1306282214071 dot 15167 at digraph dot polyomino dot org dot uk>
awk 'NF == 0 { ++n; next } NF != 0 { while (n-- > 0) print ""; n = 0; print }'