如何用awk删除一个文本中某行的第n列
02-CPU1|04h|ok|65.1|41degreesC03-CPU2|05h|ok|65.2|40degreesC04-P1DIMM1-6|06h|ns|32.1|...
02-CPU 1 | 04h | ok | 65.1 | 41 degrees C
03-CPU 2 | 05h | ok | 65.2 | 40 degrees C
04-P1 DIMM 1-6 | 06h | ns | 32.1 | Disabled
05-P1 DIMM 7-12 | 07h | ok | 32.2 | 39 degrees C
我需要删除四五(DIMM所在)行的第三列,然后显示
02-CPU 1 | 04h | ok | 65.1 | 41 degrees C
03-CPU 2 | 05h | ok | 65.2 | 40 degrees C
04-P1 DIMM | 06h | ns | 32.1 | Disabled
05-P1 DIMM | 07h | ok | 32.2 | 39 degrees C 展开
03-CPU 2 | 05h | ok | 65.2 | 40 degrees C
04-P1 DIMM 1-6 | 06h | ns | 32.1 | Disabled
05-P1 DIMM 7-12 | 07h | ok | 32.2 | 39 degrees C
我需要删除四五(DIMM所在)行的第三列,然后显示
02-CPU 1 | 04h | ok | 65.1 | 41 degrees C
03-CPU 2 | 05h | ok | 65.2 | 40 degrees C
04-P1 DIMM | 06h | ns | 32.1 | Disabled
05-P1 DIMM | 07h | ok | 32.2 | 39 degrees C 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询