基本上,我有两个文件
欺骗测试.txt
152,153
192,193
215,216
290,291
2279,2280
2282,2283
haftest.txt
152,ABBOTS ROAD
153,ABBOTS ROAD
154,ABBOTS ROAD
155,ABBOTS ROAD
156,ABBOTS ROAD
157,ABBOTS ROAD
我想在 haftest.txt 中找到 dupestest.txt 中的数字并产生以下结果:results.txt
152,ABBOTS ROAD,153 ABBOTS ROAD
192,ABBOTS ROAD,193,ABBOTS ROAD
ETC
谁能给我任何建议?
它必须在 awk 中。