"We do have some duplicate directories so finding dupes is the next problem."
If you change this line in ++Athanasius' code:
$dirs{$File::Find::dir} = 1;
to
++$dirs{$File::Find::dir};
The code will run the same but now you'll have a count. You can then find duplicates like this (untested):
my @dup_dirs = grep { $dirs{$_} > 1 } keys %dirs;
-- Ken
In reply to Re^3: File:Find pattern match question
by kcott
in thread File:Find pattern match question
by RockE
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |