cmp-compares two files

 <  Day Day Up  >  

cmp ” compares two files

 cmp [ l ] [ s ] filename1 filename2 

The two files are compared. cmp makes no comment if the files are the same; if they differ , it announces the byte and line numbers at which the first difference occurred.

Example A.13.
 cmp file.new file.old 

EXPLANATION

If the files differ, the character number and the line number are displayed.

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net