cmp man page on Plan9

Man page or keyword search:  
man Server   549 pages
apropos Keyword Search (all sections)
Output format
Plan9 logo
[printable version]

CMP(1)									CMP(1)

NAME
       cmp - compare two files

SYNOPSIS
       cmp [ -lLs ] file1 file2 [ offset1 [ offset2 ] ]

DESCRIPTION
       Cmp compares the two files and prints a message if the contents differ.

       The options are:

       -l     Print  the  byte number (decimal) and the differing bytes (hexa‐
	      decimal) for each difference.

       -L     Print the line number of the first differing byte.

       -s     Print nothing for differing files, but set the exit status.

       If offsets are given, comparison starts at the designated byte position
       of the corresponding file.  Offsets that begin with 0x are hexadecimal;
       with 0, octal; with anything else, decimal.

SOURCE
       /sys/src/cmd/cmp.c

SEE ALSO
       diff(1)

DIAGNOSTICS
       If a file is inaccessible or missing, the exit status is If  the	 files
       are  the	 same,	the exit status is empty (true).  If they are the same
       except that one is longer than the other, the exit status is  Otherwise
       cmp  reports  the  position  of the first disagreeing byte and the exit
       status is

									CMP(1)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Plan9

List of man pages available for Plan9

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net