Re: Remove duplicate files

2010-07-13 Thread David Christensen
Harinatha Reddy M wrote: I want to remove any duplicate files(same in content with different file names) in a particular directory. How can we do that? $ cpan Bundle::Dpchrist $ man finddups And what if the file is being accessed by some process. Can we delete it? Dpchrist

RE: Remove duplicate files

2010-07-13 Thread Bob McConnell
From: Shawn H Corey > On 10-07-13 01:58 AM, John W. Krahn wrote: >> Harinatha Reddy M wrote: >>> And what if the file is being accessed by some process. Can we delete it? >> >> Probably not on Windows, probably yes on Unix/Linux. > > On Linux, the contents of the file will be kept until all proce

Re: Remove duplicate files

2010-07-13 Thread Shawn H Corey
On 10-07-13 01:58 AM, John W. Krahn wrote: Harinatha Reddy M wrote: And what if the file is being accessed by some process. Can we delete it? Probably not on Windows, probably yes on Unix/Linux. On Linux, the contents of the file will be kept until all processes that have it open, closes it

Re: Remove duplicate files

2010-07-12 Thread John W. Krahn
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 bein

Re: Remove duplicate files

2010-07-12 Thread Harinatha Reddy M
Hi Shlomi, Thanks for the prompt reply. What about the other case where my *file is already being accessed by some program/process*. Can i delete it? If so how? Thank you, Hari

Re: Remove duplicate files

2010-07-12 Thread Shlomi Fish
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

Remove duplicate files

2010-07-12 Thread Harinatha Reddy M
Hi, I want to remove any duplicate files(same in content with different file names) in a particular directory. How can we do that? And what if the file is being accessed by some process. Can we delete it? Thank you, HARI