Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

scalable duplicate file remover

by spx2 (Deacon)
on Mar 02, 2008 at 15:40 UTC ( [id://671503]=CUFP: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #this script will create the database which will be used
    #CAREFUL! IF THERE EXISTS A PREVIOUS DATABASE IT WILL DELETE IT !!!
    ...
    `rm checksum_db.sqlite`;
    my $dbh = DBI->connect("dbi:SQLite:dbname=checksum_db.sqlite","","");
    $dbh->do("CREATE TABLE checksums (id INTEGER PRIMARY KEY,checksum VARC
    +HAR(42),size INTEGER,last_date_modified DATE,name VARCHAR(200) UNIQUE
    +,is_dir VARCHAR(1),is_file VARCHAR(1),is_link VARCHAR(1),UNIQUE (chec
    +ksum,name));");
    
  2. or download this
    minsize: 64
    directories:
    ...
        file: 1
        link: 0
        regex: .*
    
  3. or download this
    #this will be used just for the first run
    #!/usr/bin/perl 
    ...
    }
    
  4. or download this
    #!/usr/bin/perl 
    use strict;
    ...
        );
    }
    
  5. or download this
    #!/usr/bin/perl 
    use strict;
    ...
    };
    
    close $script;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://671503]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-20 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found