I need your help please.
I have a text file contains lines of lists, each line represent a list of items. I need to extract all items that have a frequency of >=2 and output them into another file.Here an example.
['COLG-CAD-406', 'CSAL-CAD-030', 'COLG-CAD-533', 'COLG-CAD-188']
['COLG-CAD-188']
['CSAL-CAD-030']
['EPHAG-JAE-004']
['COLG-CAD-188', 'CEM-SEV-004']
['COL-CAD-188', 'COLG-CAD-406']
the output should be
['COLG-CAD-406'], 2
['CSAL-CAD-030'], 2
['COLG-CAD-188'], 3
and so on till the end of the file
Thank you very much for your help in advance.