Help (please)...
I am a very green newbie with perl but here is what I am trying to do.
I have a directory with many many files of the format;
xxxxxxxx-01.ext
xxxxxxxx-03.ext
yyyyyyyy-23.ext
yyyyyyyy-24.ext
aaaaaaaa-01.ext
aaaaaaaa-09.ext
....
What I would like to do is have a script that loops through the filenames keeping only the higher(newer)
versions of each file.
based on the examples above , only the xxxxxxx-03 and the yyyyyy-24 and the aaaaaaa-09 files would remain after running the script.
( yes I have been RTFM'ing and surfing and perldoc'ing , just too green yet to put things together , so please be kind)
I am a very green newbie with perl but here is what I am trying to do.
I have a directory with many many files of the format;
xxxxxxxx-01.ext
xxxxxxxx-03.ext
yyyyyyyy-23.ext
yyyyyyyy-24.ext
aaaaaaaa-01.ext
aaaaaaaa-09.ext
....
What I would like to do is have a script that loops through the filenames keeping only the higher(newer)
versions of each file.
based on the examples above , only the xxxxxxx-03 and the yyyyyy-24 and the aaaaaaa-09 files would remain after running the script.
( yes I have been RTFM'ing and surfing and perldoc'ing , just too green yet to put things together , so please be kind)