Harinatha Reddy M wrote:
Hi,
Hello,
I want to remove any duplicate files(same in content with different file names) in a particular directory. How can we do that?
Find all files that are the same size, then open them in binary mode and compare the contents.
And what if the file is being accessed by some process. Can we delete it?
Probably not on Windows, probably yes on Unix/Linux. John -- Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction. -- Albert Einstein -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/