Can you please tell me how can I compare the content content of each files under 2 different directories hierarchy? I am on MacOS X platform?

Thank you.

link|improve this question

62% accept rate
feedback

migrated from stackoverflow.com Jan 4 '11 at 20:42

This question came from our site for professional and enthusiast programmers.

4 Answers

up vote 0 down vote accepted

DiffMerge may do what you need:

Performs a side-by-side comparison of 2 folders, showing which files are only present in one file or the other, as well as file pairs which are identical or different.

Graphically shows the changes between two files. Includes intra-line highlighting and full support for editing.

link|improve this answer
feedback

If you have the developer tools installed, you will have filemerge, which can compare 2 directories. However - if you haven't it would be a rather big thing to install just for that.

link|improve this answer
feedback

I use "Beyond compare" to do it, and it seems that the MAC equivalent is bbedit

link|improve this answer
Absolutely not. BBEdit is a general purpose and developers' text editor that perhaps has some diff functionality. – Daniel Beck Jan 5 '11 at 12:02
feedback

If you don't mind using the command line, you can use the UNIX 'diff' command.

An example of a command to run a compare using diff could be:

diff -r /my/first/directory /my/second/directory

This will recursively perform a diff on all common directories and files between the two directories.

Reference: http://www.computerhope.com/unix/udiff.htm

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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