Introduction
Introduction Statistics Contact Development Disclaimer Help
cmp.1 - sbase - suckless unix tools
git clone git://git.suckless.org/sbase
Log
Files
Refs
README
LICENSE
---
cmp.1 (779B)
---
1 .Dd October 8, 2015
2 .Dt CMP 1
3 .Os sbase
4 .Sh NAME
5 .Nm cmp
6 .Nd compare two files
7 .Sh SYNOPSIS
8 .Nm
9 .Op Fl l | Fl s
10 .Ar file1 file2
11 .Sh DESCRIPTION
12 .Nm
13 compares
14 .Ar file1
15 and
16 .Ar file2
17 byte by byte.
18 If they differ,
19 .Nm
20 writes the first differing byte- and line-number to stdout.
21 .Sh OPTIONS
22 .Bl -tag -width Ds
23 .It Fl l
24 Print byte-number and bytes (in octal) for each difference.
25 .It Fl s
26 Print nothing and only return status.
27 .El
28 .Sh EXIT STATUS
29 .Bl -tag -width Ds
30 .It 0
31 .Ar file1
32 and
33 .Ar file2
34 are identical.
35 .It 1
36 .Ar file1
37 and
38 .Ar file2
39 are different.
40 .It > 1
41 An error occurred.
42 .El
43 .Sh SEE ALSO
44 .Xr comm 1 ,
45 .Xr diff 1
46 .Sh STANDARDS
47 The
48 .Nm
49 utility is compliant with the
50 .St -p1003.1-2013
51 specification.
52 .Pp
53 The "char" in the default result format has been replaced with "byte".
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.