Oren Hamama Asked: 2022-09-20 22:29:16 +0800 CST 剪切和比较文件中的字符串 1 我有文件包含以下几行: 3 5 asd/sdf/rdc fgd/ghw/rtt 4 7 axd/sdf/rdc axd/ghw/ert 8 2 drf/sdf/uhg fgd/ghw/gcd 我只想比较第 3 列和第 4 列中的名字并打印是否匹配 - 结果应该是: 3 5 asd/sdf/rdc fgd/ghw/rtt diff 4 7 axd/sdf/rdc axd/ghw/ert equal 8 2 drf/sdf/uhg fgd/ghw/gcd diff linux cut