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