diff options
Diffstat (limited to 'util/sbase/cmp.1')
-rw-r--r-- | util/sbase/cmp.1 | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/util/sbase/cmp.1 b/util/sbase/cmp.1 new file mode 100644 index 00000000..750d11a8 --- /dev/null +++ b/util/sbase/cmp.1 @@ -0,0 +1,49 @@ +.Dd October 8, 2015 +.Dt CMP 1 +.Os sbase +.Sh NAME +.Nm cmp +.Nd compare two files +.Sh SYNOPSIS +.Nm +.Op Fl l | Fl s +.Ar file1 file2 +.Sh DESCRIPTION +.Nm +compares +.Ar file1 +and +.Ar file2 +byte by byte. +If they differ, +.Nm +writes the first differing byte- and line-number to stdout. +.Sh OPTIONS +.Bl -tag -width Ds +.It Fl l +Print byte-number and bytes (in octal) for each difference. +.It Fl s +Print nothing and only return status. +.El +.Sh EXIT STATUS +.Bl -tag -width Ds +.It 0 +.Ar file1 +and +.Ar file2 +are identical. +.It 1 +.Ar file1 +and +.Ar file2 +are different. +.It > 1 +An error occurred. +.El +.Sh SEE ALSO +.Xr comm 1 , +.Xr diff 1 +.Sh STANDARDS +POSIX.1-2013. +.Pp +The "char" in the default result format has been replaced with "byte". |