diff -y -b --suppress-common path1 path2
diff -r -q --exclude="*.pdf" path1 path2
diff -r -q --exclude="*.pdf" path1 path2 | grep -v -E '^Common subdirectories|^Only in'
diff --unified file1.txt file2.txt
diff --context file1.txt file2.txt
patch -p0 < patchfile
This outputs 2 columns, hiding lines that are the same, then pipes the result through the wc program with the flag to count newlines.
diff -y --suppress-common-lines file1.txt file2.txt | wc -l
The diff utility has a man page, but the more comprehensive documentation is available in info format (info diff).