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

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.

share|improve this question
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

You must log in to answer this question.

Browse other questions tagged .