Duplicate File Checker
If you’re like me, you have many files on your computer—sometimes too many. In my case, one of my favorite tricks is to download pictures from my camera multiple times. These images are big and take up a lot of space. Storing multiple copies is not a good idea.
To help me keep track of things, I wrote a program to scan a directory (or series of directories) for duplicate files.
The basic operations of the program are
Find all the files.
Check for duplicates.
The first part of the program, find all the files, was largely written by the utility find2perl. It takes the same argument as the UNIX find command, only instead of actually finding the files, the program writes out a Perl script that does the work.
The command to ...
Get Perl for C Programmers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.