Paul Jarc wrote:
> [EMAIL PROTECTED] 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.

_______________________________________________
help-gnu-utils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gnu-utils

Reply via email to