Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to compare 2 folders full of images with binary compare that ignores file names. This means each image would have to be compared with every image in the other folder. I Can't figure out how to do it with Beyond Compare (v. 3.3.8). Anyone have a clue?

share|improve this question

1 Answer 1

If the data of the two files is expected to be exactly the same, you can get the MD5 checksum of each file in the second folder; sort the list; and for each image in the first folder, search for a matching checksum. On OSX, the command is "md5", but, in Linux it is md5sum.

md5 * | awk '{print $4,$2}' | sort

Or, if you want an even more automated way,

md5 (SecondFolder)/* > /tmp/second_folder.txt
md5 (FirstFolderFile) | awk '{print $4}' | grep -f -  /tmp/second_folder.txt
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.