My requirement goes this way. I need to join the two files which were shown below by eliminating the duplicates in a field.
The first 1-8 char's are the key fields in both the files.
Input files:-
File1:-
File1:-
MTPLB41A 01:02 32312
MTPLB41B 00:57 32312
MTPLB41C 01:13 32312
MTPLB41D 01:27 32312
MTPLB41E 01:16 32312
MTPLB41A 01:02 32312
MTPLB41B 00:57 32312
MTPLB41C 01:13 32312
MTPLB41D 01:27 32312
MTPLB41E 01:16 32312
File2:-
File2:-
MTPLB41A TEST.FILE1.SEND(0) test.server.com file1.txt
MTPLB41A TEST.FILE2.SEND(0) test.server.com file2.txt
MTPLB41B TEST.FILE3.SEND(0) test.server.com file3.txt
MTPLB41C TEST.FILE4.SEND(0) test.server.com file4.txt
MTPLB41C TEST.FILE5.SEND(0) test.server.com file5.txt
MTPLB41C TEST.FILE6.SEND(0) test.server.com file6.txt
MTPLB41C TEST.FILE7.SEND(0) test.server.com file7.txt
MTPLB41D TEST.FILE8.SEND(0) test.server.com file8.txt
MTPLB41E TEST.FILE9.SEND(0) test.server3.com file9.txt
MTPLB41A TEST.FILE1.SEND(0) test.server.com file1.txt
MTPLB41A TEST.FILE2.SEND(0) test.server.com file2.txt
MTPLB41B TEST.FILE3.SEND(0) test.server.com file3.txt
MTPLB41C TEST.FILE4.SEND(0) test.server.com file4.txt
MTPLB41C TEST.FILE5.SEND(0) test.server.com file5.txt
MTPLB41C TEST.FILE6.SEND(0) test.server.com file6.txt
MTPLB41C TEST.FILE7.SEND(0) test.server.com file7.txt
MTPLB41D TEST.FILE8.SEND(0) test.server.com file8.txt
MTPLB41E TEST.FILE9.SEND(0) test.server3.com file9.txt
Expected output file:-
Output file:-
MTPLB41A 01:02 32312 TEST.FILE1.SEND(0) test.server.com file1.txt
TEST.FILE2.SEND(0) test.server.com file2.txt
MTPLB41B 00:57 32312 TEST.FILE3.SEND(0) test.server.com file3.txt
MTPLB41C 01:13 32312 TEST.FILE4.SEND(0) test.server.com file4.txt
TEST.FILE5.SEND(0) test.server.com file5.txt
TEST.FILE6.SEND(0) test.server.com file6.txt
TEST.FILE7.SEND(0) test.server.com file7.txt
MTPLB41D 01:27 32312 TEST.FILE8.SEND(0) test.server.com file8.txt
MTPLB41E 01:16 32312 TEST.FILE9.SEND(0) test.server3.com file9.txt
MTPLB41A 01:02 32312 TEST.FILE1.SEND(0) test.server.com file1.txt
TEST.FILE2.SEND(0) test.server.com file2.txt
MTPLB41B 00:57 32312 TEST.FILE3.SEND(0) test.server.com file3.txt
MTPLB41C 01:13 32312 TEST.FILE4.SEND(0) test.server.com file4.txt
TEST.FILE5.SEND(0) test.server.com file5.txt
TEST.FILE6.SEND(0) test.server.com file6.txt
TEST.FILE7.SEND(0) test.server.com file7.txt
MTPLB41D 01:27 32312 TEST.FILE8.SEND(0) test.server.com file8.txt
MTPLB41E 01:16 32312 TEST.FILE9.SEND(0) test.server3.com file9.txt
Can some one please provide me the sort card in achieving the above??