The diff command provides you with the line numbers of one of the files that need to be changed to make the files identical. The output looks like:
10c10
< 1. Create a script or determine which command you want to be executed regularly and determine how often it should be run.
---
> 1. Create a script or determine which executed regularly and determine how often it should be run.
24,26d23
< Any field that is not applicable to your job should have an asterisk (*) as a place holder. If you want to specify more than one value for any field, separate the values with a comma and no whitespace. The days of the week are indicated by a number with Sunday being 0.
< For example:
The diff command uses special symbols to tell you how to change the first file to make it identical to the second file. “10c10” replace line 10 of the old file, which is indicated by the “<” symbol and replace it with line 10 of the second file, which is indicated by the “>” symbol. “24,26d23” says to delete lines 24 through 26 of the old file and the two files will be identical. One other symbol is in the form of 5a6, which says append the line that follows to line 5.
Once you make the changes, you can use the cmp command to ensure that they are exactly the same.