sbase/cmp.1
Hiltjo Posthuma 57a19e3b86 add some mandoc pages and fix some warnings
- add .Os, it is mandatory.
- don't redeclare .Nm when it's not needed.
- fix some warnings (checked with mandoc -Tlint).
- remove some leftover old stuff.
2015-01-30 21:21:50 +01:00

42 lines
701 B
Groff

.Dd November 21, 2014
.Dt CMP 1 sbase\-VERSION
.Os
.Sh NAME
.Nm cmp
.Nd compare two files
.Sh SYNOPSIS
.Nm
.Op Fl l | Fl s
.Ar file1 file2
.Sh DESCRIPTION
.Nm
compares two files byte by byte. If the files differ,
.Nm
prints the byte and
line number at which the difference occurred.
.Sh OPTIONS
.Bl -tag -width Ds
.It Fl l
Print the byte number, and the differing bytes (in octal), for each difference.
.It Fl s
Print nothing, only returns status.
.El
.Sh EXIT STATUS
.Bl -tag -width Ds
.It 0
The files are identical.
.It 1
The files are different.
.It > 1
An error occured.
.El
.Sh SEE ALSO
.Xr comm 1 ,
.Xr diff 1
.Sh STANDARDS
The
.Nm
utility is compliant with the
.St -p1003.1-2008
specification.