Diff on a folder structure
You can simple check which files that differ in a folder structure as follows:
diff -r ./A ./B
If you only want to see files that differ add -q
parameter.
diff -qr ./A ./B
If you to do a different operation on the pairs of diffing files you may use some other tools for that.
diff -qr ./A ./B | grep 'Files; | cut -d' ' -f2,4 | xargs -n2 diff
-n2
is used to make sure that xargs does not treat lines with