View Single Post
Old 01-30-2013, 02:59 PM   PM User | #2
FishMonger
Super Moderator


 
Join Date: May 2005
Location: Southern tip of Silicon Valley
Posts: 2,753
Thanks: 2
Thanked 149 Times in 144 Posts
FishMonger will become famous soon enoughFishMonger will become famous soon enough
Parse the filename to extract the date and reorder the numbers to yymmdd format then compare that number with the previous parsed filename keeping the one that is greater.

I assume the folder contains an assortment of packages and you want the latest/newest of each. You'll want to maintain a hash where the keys are the package names (e.g., wf in this case) and the value will be the largest datestamp found for that package.
FishMonger is offline   Reply With Quote