Well, unfortunately, Address Book doesn't have a function to compare then only merge identical cards. Its four import options are
Keep Old, Keep New, Keep Both, and
Update. The
Update option is closest to what you want, but it will assume that contacts with similar fields (like the
John Q Public example I gave earlier) are
the same person and will combine them into one (I found this out the hard way).
Your best bet I think would be to export All Contacts for each Address Book as a single vcard (this is the only format that Address Book natively exports), open in a spreadsheet/database program that can compare and merge identical fields, and do the combine there. Address Book can import .csv files, so something like Excel or
Araxis Merge (➚) might be able to do it (I don't know if Excel's
Merge Workbooks function is applicable in this case).
Perhaps other people have suggestions on how to only combine identical cards. I don't know programming, so AppleScript and Terminal puts me out of my depth. For what you want to do, Address Book's import/export functions are insufficient by themselves.