0
I have a huge file (50k lines) with the following format:
52370581 2116
17996781 4314
47818829 2584
61421045 2158
...
25145813 2274
The first value can be present multiple times and I want to compute the average of the 2nd value for each 1st value, using the terminal. Ideally, I'd want the median, the min and max too. I can to it on all the values quite easily with awk
but I was wondering how to get that done for each value.
1Do you want the median or the average? It's not the same thing. – Nifle – 2013-05-11T15:28:08.780
@Nifle he said he wants the median as well. – Christian Stewart – 2013-05-12T00:36:52.150