【发布时间】:2015-06-12 02:42:21
【问题描述】:
我有两列如下
ifile.dat
1 10
3 34
1 4
3 32
5 3
2 2
4 20
3 13
4 50
1 40
2 20
我要查找的是在第一列中的每个 1、2、3、4、5 的第二列中找到最大值。
ofile.dat
1 40
2 20
3 34
4 50
5 3
我发现有人使用其他程序完成了此操作,例如Get the maximum values of column B per each distinct value of column A
【问题讨论】: