I have two directories containing source files to a project I've inherited with little by way of documentation. How do I compare both directories to make see what the differences are?
I have two directories containing source files to a project I've inherited with little by way of documentation. How do I compare both directories to make see what the differences are?
Try this:
diff -Naur dir1/ dir2/
-u option makes the output a
little easier to read.-r option recurses through all
subdirectories-N and -a options are really
only necessary if you wanted to create
a patch file.diff -u -r dirA dirB
Will show you a unified recursive diff between the files in dirA and dirB