11.2) Compare Files
First, make a copy of ‘file1’ and call it ‘file4’. Now use emacs to change the ‘4.3’ in the second column/second row to a 5.3.
Now you can use diff to highlight the difference that you just made. Type:
diff file1 file4
The result will look like:
2c2 < 0.2 4.3 --- > 0.2 5.3
See the next page for a description of the results.