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 22:59:17 -0500
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

casioculture@gmail.com wrote:
> sort file | uniq -c -d | sort -r
>
> This gives me the duplicated lines in my file sorted by how many times
> they're duplicated, but the first item I get are how many blank lines
> there are in my file, which I don't need to know.

grep . file | sort | uniq -c -d | sort -r


paul




reply via email to

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