0

Possible Duplicate:
Find duplicate files on Mac OS X

I am trying to grep duplicate files in this selection:

find . -name '*.CR2'

I want to delete duplicate CR2 on my RAW files archive. How can I grep them maintaining the path? Or is there a better way to remove them?

I'd like to identify them by name and size.

1 Answers1

0

What you want to achieve might be a perfect fit for fdupes. From the manpage:

SYNOPSIS fdupes [ options ] DIRECTORY ...

DESCRIPTION Searches the given path for duplicate files. Such files are found by comparing file sizes and MD5 signatures, followed by a byte-by-byte comparison.

BubuIIC
  • 576