我只想提取第 2 列中由第 2 列中至少 2 个唯一值共享的那些值。
使用相同的输入(在本例中为 3 个制表符分隔的列):
waterline-n below-sheath-v 14.8097
dock-n below-sheath-v 14.5095
waterline-n below-steel-n 11.0330
picnic-n below-steel-n 12.2277
wavefront-n at-part-of-variance-n 18.4888
wavefront-n between-part-of-variance-n 17.0656
audience-b between-part-of-variance-n 17.6346
game-n between-part-of-variance-n 14.9652
whereabouts-n become-rediscovery-n 11.3556
whereabouts-n get-tee-n 10.9091
对于以下所需的输出:
waterline-n below-sheath-v 14.8097
dock-n below-sheath-v 14.5095
waterline-n below-steel-n 11.0330
picnic-n below-steel-n 12.2277
wavefront-n between-part-of-variance-n 17.0656
audience-b between-part-of-variance-n 17.6346
game-n between-part-of-variance-n 14.9652
是否可以使用 grep 执行此操作?