need your help about a script I wish do. I have 2 dynamic files (file1 and file2, like a little Data Base), and its important compare this files and get a file3 with your differences, for example:_
FILE1 DB TO COMPARE
5851388
5859999
4164754
6123574
3214587
FILE2 RAW INPUT
9874563 The number calling is 111
5851388 The number calling is OK
6237733 the number is wrong
5859999 The number calling is ok
Then if You compare this 2 files (BD Dynamics – Files updated periodically), FILE1 passed from beginning to EOF and compare all datas with FILE2 generating the FILE3 as:
FILE3 DESIRED OUTPUT
9874563 The number calling is 111
6237733 the number is wrong
When FILE1 data match with FILE2, the data matched in FILE2 are deleted and copy in FILE3
I don’t know how do it? I appreciate your information ASAP.
Regards,
FILE1 DB TO COMPARE
5851388
5859999
4164754
6123574
3214587
FILE2 RAW INPUT
9874563 The number calling is 111
5851388 The number calling is OK
6237733 the number is wrong
5859999 The number calling is ok
Then if You compare this 2 files (BD Dynamics – Files updated periodically), FILE1 passed from beginning to EOF and compare all datas with FILE2 generating the FILE3 as:
FILE3 DESIRED OUTPUT
9874563 The number calling is 111
6237733 the number is wrong
When FILE1 data match with FILE2, the data matched in FILE2 are deleted and copy in FILE3
I don’t know how do it? I appreciate your information ASAP.
Regards,