I have a list of alphanumeric filenames, as follows:
['build999.100', 'build999.0', 'buil998.100',
'build997.100', 'build996.100', 'build996.0']
I want to get a list removing the duplicates of the suffix post '.', i.e. I want my list to be
['build999.100', 'buil998.100', 'build997.100', 'build996.100']
The suffix after '.'
does not matter, I just need to remove the duplicates on the basis of 999, 998
etc.
I am looking for implementations in either Python or Unix.