xref: /freebsd/contrib/libdiff/man/diff.1 (revision a91a246563dffa876a52f53a98de4af9fa364c52)
1.\"	$OpenBSD$
2.\"
3.\" Copyright (c) 2018 Martin Pieuchot
4.\" Copyright (c) 2020 Neels Hofmeyr <neels@hofmeyr.de>
5.\"
6.\" Permission to use, copy, modify, and distribute this software for any
7.\" purpose with or without fee is hereby granted, provided that the above
8.\" copyright notice and this permission notice appear in all copies.
9.\"
10.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17.\"
18.Dd $Mdocdate: August 28 2017 $
19.Dt DIFF 1
20.Os
21.Sh NAME
22.Nm diff
23.Nd compare files
24.Sh SYNOPSIS
25.Nm diff
26.Ar file1 file2
27.Sh DESCRIPTION
28The
29.Nm
30utility compares the contents of
31.Ar file1
32and
33.Ar file2
34line by line.
35.Sh EXIT STATUS
36The
37.Nm
38utility exits with one of the following values:
39.Pp
40.Bl -tag -width Ds -offset indent -compact
41.It 0
42No differences were found.
43.It 1
44Differences were found.
45.It >1
46An error occurred.
47.El
48