Is there an utility to compare the contents of a directory by file contents alone?

I have two sets of files, most of them binary same, but some of them different; but each files of a pair have different names even if their contents match.

Is there a tool that is able to compare the directory contents based on the actual file contents and does not require the filename to match?

I'm on Windows, but also interested in GNU/Linux tools.

  • don't know but one method could be to order them such that they pair up so the first in dir1 is to be compared with the first in dir2. then rename each file to its position. so dir1 will have files called first, second, third, fourth e.t.c. similarly dir2. Then they'll have the same names. and you'll know which files are meant in your comparison. – barlop Mar 11 '13 at 14:16
  • Will one of the many duplicate file finders not suffice? – Karan Mar 11 '13 at 18:58

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.