Yes, I do realize that my question isn't very well-formed. Let me provide an example, using 2 bins, instead of 10 for brevity: Suppose my data has 10 lines where foo="A", 9 lines where foo="B", 8 lines where foo="C", and 7 lines where foo="D". Then | stats count as c by foo | sort -c should output foo c
A 10
B 9
C 8
D 7 What I want from the chart+bins command (for example) is something like this: bins sum
bin1 19
bin2 15 ...where bin1 is formed from A and B, since they have the top two c values and bin2 is C and D, as the least, and the sum value is sum(c).
... View more