I have some files like this:
file1.txt:
APA1 2749 0138
APA1 2950 1234
APA1 2294 0204
APA1 2902 0229
file2.txt:
USD1 2380 1229
USD1 2671 1452
USD1 2672 2182
USD1 2130 1234
file3.txt:
CCD1 2370 0229
CCD1 2371 1152
CCD1 2372 1182
CCD1 2030 1234
CCD1 2374 1701
I need a awk script that locate the line that has a "word"
repeated (1234, 0229,...), then print out this lines, with a line identifications ("$1 - $2").
print out like this:
CCD1-2030,USD1-2130,APA1-2950 Repeat: 1234
APA1-2902,CCD1-2370 Repeat: 0229
ps. Sorry my english, I live in Brazil.
file1.txt:
APA1 2749 0138
APA1 2950 1234
APA1 2294 0204
APA1 2902 0229
file2.txt:
USD1 2380 1229
USD1 2671 1452
USD1 2672 2182
USD1 2130 1234
file3.txt:
CCD1 2370 0229
CCD1 2371 1152
CCD1 2372 1182
CCD1 2030 1234
CCD1 2374 1701
I need a awk script that locate the line that has a "word"
repeated (1234, 0229,...), then print out this lines, with a line identifications ("$1 - $2").
print out like this:
CCD1-2030,USD1-2130,APA1-2950 Repeat: 1234
APA1-2902,CCD1-2370 Repeat: 0229
ps. Sorry my english, I live in Brazil.