Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Darn html!!!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Darn html!!!
Authored by: SOX on Sep 17, '04 04:35:31PM
arggh! its so hard to get code to show up right in these comment boxes. The last one was missing the <> symbol since it got removed by the htlp filter.

cat > dup_find
#!/usr/bin/perl 
# identify duplicates that have same four first fields
$/ = "\r";
while ($d = <>) { 
     @F = split /\t/, $d ;
    $x = join " ::\t",@F[0..4]; 
    print $x,"\n" if $h{$x}++;
}



[ Reply to This | # ]