Gossamer Forum
Home : General : Perl Programming :

Need Help with a perl command to find duplicacy between files

Quote Reply
Need Help with a perl command to find duplicacy between files
 

Hi All

Happened to find a nice perl command for removing duplicacy between the file.


perl -ne 'print if ($seen{$_} .= @ARGV) =~ /10$/' a.txt b.txt > a_b.duplicate


It would be great , if someone could breakup the code and explain me how this works ?

Thanks

Best Regards
Varun