Creating new column with arithmetic only if first column has same ID using awk

后端 未结 0 1934
误落风尘
误落风尘 2021-01-15 00:21

If I have a file which is in the form:

ID Value1 Value2
0  1      0
0  2      2
1  1      0
1  3      3
2  1.5    0
2  2      1

I want to add

相关标签:
回答
  • 消灭零回复
提交回复
热议问题