Javascript Menu by Deluxe-Menu.com
Comparing files

Comparing files

You can display the line by line difference between two files with the diff command.

   diff file1 file2

The information given by the command tells you what changes need to be made for file1 and file2 to match. If there is no difference between the files you are returned to the shell prompt.

diff indicates which lines need be added (a), deleted (d) or changed (c).

Lines in file1 are identified with a (<) symbol: lines in file2 with a (>) symbol.


[Home] [Search] [Index] This site maintained by unixhelp@math.rutgers.edu
This page was last updated on September 05, 2006 at 10:30 am and is maintained by webmaster@math.rutgers.edu.
For questions or comments about this site, please contact help@math.rutgers.edu.
© 2009 Rutgers, The State University of New Jersey. All rights reserved.