On Tuesday 13 Jul 2010 07:44:12 Harinatha Reddy M wrote: > Hi, > > I want to remove any duplicate files(same in content with different file > names) in a particular directory. > > How can we do that? >
You should first calculate a cryptographically secure hash value of the files there and then see if there are duplicates in the hash. See: http://search.cpan.org/dist/Digest-SHA/ After that, you can compare the files with the identical hash value byte by byte and see if they are really duplicates. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ Parody on "The Fountainhead" - http://shlom.in/towtf God considered inflicting XSLT as the tenth plague of Egypt, but then decided against it because he thought it would be too evil. Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/