Miles Duke writes: > > 'uniq --count' is an excellent tool for summarizing data, but it is > missing one useful feature - an overall total.
This might be a good idea...
>
> It's embarrassing to have to go to excel to bring the totals together.
...but you can't think of any other tool that can add up a bunch of numbers?!
You're using dynamite to kill a mosquito. There must be a dozen basic
utilities that can do arithmetic. Like awk:
... | uniq -c | awk '{t+=$1}END{print t,"total"}1'
--
Alan Curry
