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: casioculture
Subject: Re: uniq ignore blank lines?
Date: 26 Dec 2005 20:47:20 -0800
User-agent: G2/0.2

Paul Jarc wrote:
> 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

Hi, this doesn't make a difference. I get exactly the same output.

I'm wondering if I should just use this utility
http://256.com/sources/sortu/ and its -b option. But I don't want to do
that.



reply via email to

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