Skip to main content

11.7) Display Differences


The sdiff command performs a similar function as diff in that it finds the differences between files but in this case it presents the whole contents of both files next to each other and points out a missing line with an ‘<’ (meaning the file on the left doesn’t have this line or ‘>’ meaning the file on the right doesn’t have this line or ‘|’ meaning that the lines are different. If we use the second command of Exercise 9 again but with sdiff this time:

sdiff file1 file5