【发布时间】:2021-07-01 18:45:05
【问题描述】:
我有一个问题已在此处awk - Print all lines containing the Max value found in the initial analysis 得到解答,但现在需要对其进行调整,以便在两行之间存在 U+2500 unicode 字符时进行调整。
问题如下,我有一个新的入口文件如下:
0.0008 6
────────────
9.0 10
────────────
9.0 19
────────────
0.7 33
如果我尝试使用awk - Print all lines containing the Max value found in the initial analysis 的答案找到最大值,则输出始终如下所示:
──────
──────
──────
这不是预期的出口,但我应该得到类似的东西:
9.0 10
9.0 19
注意: 创建此问题是为了不影响 awk - Print all lines containing the Max value found in the initial analysis 中标记为“已解决”的解决方案的选择。
【问题讨论】: