On Sat, Feb 23, 2008 at 12:37 AM, SJS <[EMAIL PROTECTED]> wrote: > Then we sort again, which collects all of the blank lines together. The > -u option to sort does basically the same thing as uniq -- identical > lines are collapsed into just one. Since the only lines that are going > to be identical are the blank lines, this has the effect of getting > rid of the blank lines.
That (sort -u) doesn't really get rid of the blank lines; you still end up with a single blank line in the output. I prefer to do such a step with "grep ." to return all lines that contain non-whitespace characters. -- Brad Beyenhof http://augmentedfourth.com I do not feel obliged to believe that the same God who has endowed us with sense, reason, and intellect has intended us to forgo their use. ~ Galileo Galilei, astronomer and physicist (1564-1642) -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
