How to compare two directory trees via diff on OS X
Oct 10, 2013
This snippet will compare the two directory trees located at dir1 and dir2 and write the differences to a text file:
diff -qr dir1 dir2 | grep -v -e '.DS_Store' -e 'Thumbs' -e '.git' | sort > diffs.txt
Link: Compare directories via diff – Mac OS X Hints via hints.macworld.com