X-Git-Url: https://pd.if.org/git/?p=pdutils;a=blobdiff_plain;f=utils%2Fcmp%2Fcmp.1;fp=utils%2Fcmp%2Fcmp.1;h=b7e90816e216169200218f6988a23c53454d1421;hp=0000000000000000000000000000000000000000;hb=4daa873acbfc240e9ecc350e74c14bbfd58fabc9;hpb=b6d847ae20c32744d508eced2be3132c3fa8c5b9 diff --git a/utils/cmp/cmp.1 b/utils/cmp/cmp.1 new file mode 100644 index 0000000..b7e9081 --- /dev/null +++ b/utils/cmp/cmp.1 @@ -0,0 +1,37 @@ +.TH CMP 1 "2008-1.01" "pdcore utilities" "User Commands" +.SH NAME +cmp \- compare two files +.SH SYNOPSIS +.B cmp +[-l|-s] file1 file2 +.SH DESCRIPTION +Compare two files. If the contents are the same, produce no output and return +an exit status of 0. If they differ, report the line and byte position of the +first difference, and return an exit status of 1. An exit status of 2 will be +returned in the event of any error. +.SH OPTIONS +.TP +-l +List all differences, not just the first. +.TP +-s +Silent. No output under any circumstances; returns exit status only. +.P +Note that options -l and -s are mutually exclusive. +.SH OPERANDS +.TP +file1, file2 +Input files. If none provided, or the filename '-' is passed to cmp, standard +input will be used. Note that standard input may only be used for one of the +file inputs. +.SH "AUTHORITATIVE DOCUMENTATION" + +.SH VERSION AND COMPLIANCE +Utility version 1.01 +.P +Functional compliance with POSIX:2008 (IEEE Std 1003.1-2008; +Shell and Utilities, Base Specifications Issue 7). +.SH UNLICENSE +This is free and unencumbered software released into the public domain, +provided "as is", without warranty of any kind, express or implied. See the +file UNLICENSE and the website for further details.