I have a number of files that start with normal filenames but end up with (a lot) numbers, some underscores and some text.
The numbers and underscores are stripped (regex)
So the 'normal filenames' remain.
When sorted, many filenames are identical.
I'd like to add a sequence number to the filenames to make them unique again.
However, for each group of same files the counter should start at 01 again, i.e. no number 01,02,03.... 30,31...etc. but instead
if there are, for instance, 4 groups, of 6 files, it'll read 01,02...06, next group 01,02..06, etc.
So, add sequental numbering to files, but start with 01 for each group with same name.