Always do diff -rupP file1.txt file2.txt > result.patch WhenI suggest to use:
diff -rupP file1.txt file2.txt > result.patch
Then, when you will seeread vi result.patchresult.patch, you will instantly know what is exactlythe difference.
Only diff is make very difficult to understand.These are the meanings of the command line switches:
-r: recursivelyrecursive
-u: shows line number
-p(small): shows differencedifferences in C functionfunctions
-P(capital): ifin case of multiple files then showing completethe full path is shown