I tried using this command to compute number of lines changed between two files:
diff -U 0 file1 file2 | grep ^@ | wc -l
My problem with this command is that if one file has only one line, and the other file has 100 lines, the output is still just 1.
What command would give me the total number of lines changed, including the total extra lines in one file?