Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

post bits of code you like

Name: Anonymous 2005-08-02 1:52

i shall start:

open(F,"find -type f|");
while (<F>) {
 $_ = substr($_,2,-1);
 print "$_\n" if $v;
 push @{$dups{substr(`md5sum -b "$_"`,0,31)}}, $_;
}
close(F);

for every file in a directory it checksums the file, then adds the checksum as a key to a hash, the value being an array reference. the filename is then added to the array.

so basically the arrays have a list of files with the same checksum. i use this to find duplicates files.

Name: Anonymous 2006-10-23 8:17

>>190
What?  Why, it's much easier to implement a scripting language normally than it is to translate it into JS lol.

>>189
I don't know about that, all I know is that w3m sucks.  And by sucks, I mean more than Lynx, which is known as the worst and most useless browser on the planet.  Unfortunately, some absolute retards have popularized it beyond what a single human can understand.  I want them all dead.  By noon tomorrow.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List