Example of comparing directories with the diff command

To compare two directories in the current directory:

   diff usability Usability
   Only in Usability: schedule
   diff usability/email Usability/email
   2a3,4
   > Jean JRS@pollux.ucs.co
   > Jim  jim@frolix8

diff reports that the file (or directory) scheduleis unique to the directory Usability.

diff then reports that there are differences between the file email in the directory usability and the file of the same name in the directory Usability.

To make these files match you need to add (a) lines 3 and 4 (3,4) of the file Usability/email (>) after line 2 in the file usability/email.


[Home] [Search] [Index] This site maintained by unixhelp@hardrock.org