I don't know if that question has been make..
I need maching two files with different length. The first file has 124 position; the second file has only 2 position. The first file has duplicate; the second file no. The first file is order by position 31; the second file is order by first position. I want generate a third file of 124 position with records are same...
file 1 (input) 124 position (order by position 31. Have duplicate)
------
wwwwwwwwwwwwwwwwWWWWWWWWWWWwww E afjahfj...
YYYYYYYYYYYYYYYYYYYYYYYYYYYYYY E yuyuyuy...
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA N xxxxxxx...
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB N yyyyyyy...
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC N xxxxxxx...
PPPPPPPPPPPPPPPPPPPPPPPPPPPPPP U uuuuuuu...
IIIIIIIIIIIIIIIIIIIIIIIIIIIIII R wwwwwww...
QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ T aaaaaaa...
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEE T rrrrrrr...
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF U ddddddd...
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG V aaaaaaa...
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH V bbbbbbb...
DDDDDDDDDDDDDDDDDDDDDDDDDDDDDD X sssssss...
file 2 (input) 2 position (order by the first position. No duplicate. The position 2 are not important for the comparation)
------
NS
RS
VS
file 3 (output) 124 position
------
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA N xxxxxxx...
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB N yyyyyyy...
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCC N xxxxxxx...
IIIIIIIIIIIIIIIIIIIIIIIIIIIIII R wwwwwww...
GGGGGGGGGGGGGGGGGGGGGGGGGGGGGG V aaaaaaa...
HHHHHHHHHHHHHHHHHHHHHHHHHHHHHH V bbbbbbb...
Thanks