我的文件有数千行,看起来像
R4604 17131G1 499456.1 1966201.0 0.0 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4496 12011G1 473856.2 1960800.9 0.0 1000001
R4496 12011G1 473856.2 1960800.9 64.0 1000001
我想得到的输出是
R4604 17131G1 499456.1 1966201.0 8.5 1000001
R4496 12011G1 473856.2 1960800.9 64.0 1000001
因此,如果第 1-5 列相同,只需获取一行,如果第 1-4 列相同且第 5 列中的值不同,则删除第 5 列值为 0.0 的行
感谢您的帮助亚历杭德罗