This is a great tip. I can't say how many times I wanted to clean up duplicate names of families imported from various projects. This tip would have saved hours!
Step 1: select all
Step 2: try to group
Step 3: export the list of instances