Comparing Files with cmpSuppose 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. Code Listing 6.13. cmp gives just the facts about the first difference between two files.
Code Listing 6.14. cmp also tells you if the files matched until one ended (EOF stands for "end of file").
To compare files with cmp:
Tips
|