Example filenames:
example_12345_8943759847.csv
example_23456_9859877.csv
example_34567_92837458738.csv
example_12345_1165253.csv
example_23456_9983632652.csv
example_23456_2345.csv
I need to join files that have the same middle-number, eg. 23456.csv Thing is I don't know this middle-number so I suppose this has to be some variable? I imagine I would have to list filenames with the same middle-part-number and then output this list?
I have only Perl or sed to my disposal.
Thanks