We have two .po files, each from different branches of a piece of software.
We need to combine these into a single .po file.
There are duplicates between the two
What you are looking for is the msgcat util, it concatenates and merges the specified PO dictionaries.
msgcat
This is part of gettext utils, for more information please consult gettext manual page on msgcat.
gettext utils