This is not a bug, but a feature request.

 

‘uniq --count’ is an excellent tool for summarizing data, but it is missing one useful feature – an overall total.

 

It’s embarrassing to have to go to excel to bring the totals together.

 

I suggest a new -t (--total) option:

 

·         When combined with ‘--count’, it reports the sum of the count lines

·         Without the ‘--count’, it reports the number of lines printed by uniq

 

As a new parameter, it will not break any scripts that rely upon the current output of uniq.

 

 

Miles Duke (Miles.Duke@erdas.com)