HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

diff3 — Compare three files line by line. More information: <https://www.gnu.org/software/diffutils/manual/d

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commanddiff3filesclithreecompareline
linux

Problem

How to use the diff3 command: Compare three files line by line. More information: <https://www.gnu.org/software/diffutils/manual/diffutils.html#Invoking-diff3>.

Solution

diff3 — Compare three files line by line. More information: <https://www.gnu.org/software/diffutils/manual/diffutils.html#Invoking-diff3>.

Compare files:
diff3 {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}


Show all changes, outlining conflicts:
diff3 {{[-A|--show-all]}} {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}

Code Snippets

Compare files

diff3 {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}

Show all changes, outlining conflicts

diff3 {{[-A|--show-all]}} {{path/to/file1}} {{path/to/file2}} {{path/to/file3}}

Context

tldr-pages: linux/diff3

Revisions (0)

No revisions yet.