用Replace Pioneer按照第一列的内容对第二列累加,详细步骤: 1. ctrl-o打开文本文件a.txt 2. ctrl-h打开replace窗口 * replace unit选择Line * 点击Advanced选项页 在insert begin text输入get_values_all() 在run following at the beginning of replace输入clear_values_all() 在run following for each matched unit输入set_value($match[1],get_value($match[1])+$match[2]); 3. 点击Replace即可。 4. ctrl-s保存为b.txt