not to have the keys that are in file1 but not in file2
And you want keys from file3 to have the corresponding values from file1.
Is this ok ? Then I suppose than filling file3 with the keys from file2 and their corresponding values from file1 would fit your needs. Am I wrong ? Well, maybe :)