I don't see how the 'expected' is different from 'produced'...
Could you provide a better (more representative) set of sample files to explain what you're after.....
hmmm. I don't quite follow how you get from one to the other given 2 files....
Is there a common field between the 2 files?
Please explain verbally - never mind the script....
there are 2 files, both have the value 4300 followed by some codes.
Now we get a request to update the codes.
So the 1st file is the original file which has the value 4300 followed by some codes. The 2nd file also has the value 4300 followed by some more codes which are to be appended.
so when i append the files, i am not able to remove the duplocates after the value 4300 so the result is coming as:-
4300 233445569
Suppose 4300 is a key against which we need to update the values........
please define 'append the field'.
Are concatenating 2 fields in some manner (if so how) and then want to remove sequential digits/letters of the same value?
This is still too vague of a requirement. Please take one record from both files (say 4300) and show how you're 'appending' and how you're 'removing duplicates'.