August 2006
Beginner
448 pages
9h 44m
English
Suppose you’ve been working on the dearliza file and you want to know how it differs from the dearhenry file. Using cmp, you can compare the two files as shown in Code Listing 6.13.
[ejr@hobbes manipulate]$ cmp dearliza → dearhenry dearliza dearhenry differ: char 20, line 2 [ejr@hobbes manipulate]$ |
[ejr@hobbes manipulate]$ cmp limerick → limericks cmp: EOF on limerick [ejr@hobbes manipulate]$ |
cmp dearliza dearhenry
At the shell prompt, type cmp followed by both filenames. As Code Listing 6.13 ...
Read now
Unlock full access