Use the diff command to compare two files and output a difference report.
To compare the files 'manuscript.old' and 'manuscript.new,' type:
Use the redirect command to save the difference to a new file:
Use sdiff instead of diff to view the files in a "different" manner.
To peruse the files 'laurel' and 'hardy' side by side on the screen:
To output the difference between three separate files, use diff3 and redirect the ouptput to another file: