[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


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

Reply via email to