in reply to select only duplicate entries

You may find the answers to combine duplicate entries helpful as a starting point. During building the hash take note of the number of elements in the largest array. Then iterate from 1 to number of elements. In each iteration use grep to pull out a list of the arrays containing the data for the file matching that number of elements.


DWIM is Perl's answer to Gödel