[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Script to delete duplicate files



On Fri, May 19, 2006 at 07:10:41PM -0700, Curtis Vaughan wrote:
> Ok, using fdupes -f I have created a file that contains a list of all 
> duplicate files. So, what command can a run against that file to delete 
> all the files listed in it?
> 
> Or since I know that fdupes -f works, could I just do something like:
> 
> fdupes -f ./ | rm *
> 
> or would that rm everything?

The latter.  Try xargs(1), e.g.,

  fdupes -f ./ | xargs rm

-- 
Ken



Reply to: