2 input files-File1 (Previous day file), file2(current day file). Need to compare two file if match found should write the file2 record into to the output file. If unmatched, then write the records from file1 and file2 into same output file. Below are the examples mentioned.
example file 1: example file2:
2222 4 2222 4
2222 4 2222 4
2223 3 2222 5
2223 3 2223 3
2223 3 2223 3
2444 7 2555 8
2222 4 2222 4
2223 3 2222 5
2223 3 2223 3
2223 3 2223 3
2444 7 2555 8
output file should be:
2222 4
2222 4
2222 5
2223 3
2223 3
2444 7
2555 8
2222 4
2222 5
2223 3
2223 3
2444 7
2555 8
Manju.