[perl-python] a program to delete duplicate files

Xah Lee xah at xahlee.org
Mon Mar 21 00:28:27 CET 2005


Sorry i've been busy...

Here's the Perl code. I have yet to clean up the code and make it
compatible with the cleaned spec above. The code as it is performs the
same algorithm as the spec, just doesn't print the output as such. In a
few days, i'll post a clean version, and also a Python version, as well
a sample directory for testing purposes. (The Perl code has gone thru
many testings and is considered correct.)

The Perl code comes in 3 files as it is:

Combo114.pm
Genpair114.pm
del_dup.pl

The main program is del_dup.pl. Run it on the command line as by the
spec. If you want to actually delete the dup files, uncomment the
"unlink" line at the bottom. Note: the module names don't have any
significance.


Note: here's also these python files ready to go for the final python
version. Possibly the final propram should be just a single file...

Combo114.py
Genpair114.py


Here're the files: del_dup.zip
-----
to get the code and full detail with latest update, please see:
http://xahlee.org/perl-python/delete_dup_files.html

 Xah
 xah at xahlee.org
 http://xahlee.org/PageTwo_dir/more.html


Claudio Grondi wrote:
> >> I'll post my version in a few days.
> Have I missed something?
> Where can I see your version?
> 
> Claudio




More information about the Python-list mailing list