Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a folder with about 1000 pictures in it.

Many of the pictures are the same, but have different file names.

I'm looking for a command (Mac) that will be able to identify which pictures are different and move them to another folder.

Each picture probably has 20-30 similar versions in the same folder. I'm just trying to isolate one version of it and discard the rest.

share|improve this question
If the pictures were identical this could be pretty easy but if there are even minute differences between them or different file sizes it could get tricky. – Ciaran Feb 6 '11 at 0:14
A tool like md5sum will not look for the timestamp, but every byte makes a differnce. From the title: different files. From the text: not similiar ones. What shall we choose? And: Given the files a1 a2 b c1 c2 c3, where a1=a2 and c1=c2=c3: move those who are differentt: would we move just b or a1, c1 as well? And why a1, and not a2? – user unknown Feb 6 '11 at 6:17
I think the files are the same. Assume they are. – Coffee Cup Feb 12 '11 at 7:21

On Linux the program fdupes will find and list identical files in groups, e.g.

$ fdupes -r .
./My Pictures/Dad on boat/DadOnBoat.epp
./Pictures/My Pictures/Dad on boat/Dad on boat.epp

./My Pictures/avatar.jpg
./Pictures/My Pictures/smallavatar.jpg

( -r means to recurse, . is the current directory)

You may have to use whatever package management tool is on your system to find and install fdupes.

There is also an option to prompt the user to delete files, and an option to delete without prompting.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .