]> pd.if.org Git - pdutils/blob - utils/cmp/cmp.1
implemented pwd
[pdutils] / utils / cmp / cmp.1
1 .TH CMP 1 "2008-1.01" "pdcore utilities" "User Commands"
2 .SH NAME
3 cmp \- compare two files
4 .SH SYNOPSIS
5 .B cmp
6 [-l|-s] file1 file2
7 .SH DESCRIPTION
8 Compare two files. If the contents are the same, produce no output and return
9 an exit status of 0. If they differ, report the line and byte position of the
10 first difference, and return an exit status of 1. An exit status of 2 will be
11 returned in the event of any error.
12 .SH OPTIONS
13 .TP
14 -l
15 List all differences, not just the first.
16 .TP
17 -s
18 Silent. No output under any circumstances; returns exit status only.
19 .P
20 Note that options -l and -s are mutually exclusive.
21 .SH OPERANDS
22 .TP
23 file1, file2
24 Input files. If none provided, or the filename '-' is passed to cmp, standard
25 input will be used. Note that standard input may only be used for one of the
26 file inputs.
27 .SH "AUTHORITATIVE DOCUMENTATION"
28 <http://www.opengroup.org/onlinepubs/9699919799/utilities/cmp.html>
29 .SH VERSION AND COMPLIANCE
30 Utility version 1.01
31 .P
32 Functional compliance with POSIX:2008 (IEEE Std 1003.1-2008;
33 Shell and Utilities, Base Specifications Issue 7).
34 .SH UNLICENSE
35 This is free and unencumbered software released into the public domain,
36 provided "as is", without warranty of any kind, express or implied. See the
37 file UNLICENSE and the website <http://unlicense.org> for further details.