File::Find::Duplicates - Find duplicate files
use File::Find::Duplicates; my %dupes = find_duplicate_files('/basedir1', '/basedir2'); local $" = "\n "; foreach my $filesize (keys %dupes) { print "Duplicate files of size $filesize:\n @{$dupes{$filesize}}\n"; }
This module provides a way of finding duplicate files on your system.
When passed a base directory (or list of such directories) it returns a hash, keyed on filesize, of lists of the identical files of that size.
Check the contents of tars, zipfiles etc to ensure none of these also exist elsewhere (if so requested).
File::Find.
Tony Bowden, <kasei@tmtm.com>.
Copyright (C) 2001 Tony Bowden. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install File::Find::Duplicates, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Find::Duplicates
CPAN shell
perl -MCPAN -e shell install File::Find::Duplicates
For more information on module installation, please visit the detailed CPAN module installation guide.