File:  [MW Coherent from dump] / coherent / a / usr / man / MULTI / cmp
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



cmp                          Command                          cmp




Compare bytes of two files

ccmmpp [-llss] _f_i_l_e_1 _f_i_l_e_2 [_s_k_i_p_1 _s_k_i_p_2]

cmp is  a command  that is  included with COHERENT.   It compares
file1 and file2 character by character for equality.  If file1 is
`-', cmp reads the standard input.

Normally, cmp notes the  first difference and prints the line and
character position, relative  to any skips.  If it encounters EOF
on one file but not on  the other, it prints the message ``EOF on
file_n''.  The  following are  the options  that can be  used with
cmp:

-ll Note  each differing byte by printing  the positions and octal
   values of the bytes of each file.

-ss Print nothing, but return the exit status.

If the  skip counts are  present, cmp reads skip1  bytes on file1
and  skip2 bytes  on file2  before it begins  to compare  the two
files.

***** See Also *****

commands, diff, sh

***** Diagnostics *****

The exit status is  zero for identical files, one for non-identi-
cal files,  and two for errors, e.g., bad  command usage or inac-
cessible file.
























COHERENT Lexicon                                           Page 1



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.