Find multiple entries and change their names

Hi all.

Any one know an algorithm for find multiple entries and change their names?

I have indesign layouts with some kind of links. Some links placed on different pages with different parameters (size, rotation angle, etc.).
I need find and change their names to avoid duplication.

Best regards, Alex