Finding the differences between files and patch

To compare the files manuscript.old and
manuscript.new, writing the difference report to a
file named manuscript.diff, type:

diff manuscript.old manuscript.new > manuscript.diff

Patching a File with a Difference Report

patch manuscript.old manuscript.diff