help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: uniq ignore blank lines?


From: Paul Jarc
Subject: Re: uniq ignore blank lines?
Date: Mon, 26 Dec 2005 23:53:08 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

casioculture@gmail.com wrote:
> Paul Jarc wrote:
>> grep . file | sort | uniq -c -d | sort -r
>
> Hi, this doesn't make a difference. I get exactly the same output.

Then your lines are not completely empty - they probably contain some
spaces or tabs.  You can still remove those lines with grep if you use
the right regular expression.  You can use "od -c" to see exactly what
characters are on those lines.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]