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

diffstat — Create a histogram from the output of the `diff` command. More information: <https://manned.org/diff

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

Problem

How to use the diffstat command: Create a histogram from the output of the diff command. More information: <https://manned.org/diffstat>.

Solution

diffstat — Create a histogram from the output of the diff command. More information: <https://manned.org/diffstat>.

Display changes in a histogram:
diff {{path/to/file1}} {{path/to/file2}} | diffstat


Display inserted, deleted, and modified changes as a table:
diff {{path/to/file1}} {{path/to/file2}} | diffstat -t

Code Snippets

Display changes in a histogram

diff {{path/to/file1}} {{path/to/file2}} | diffstat

Display inserted, deleted, and modified changes as a table

diff {{path/to/file1}} {{path/to/file2}} | diffstat -t

Context

tldr-pages: common/diffstat

Revisions (0)

No revisions yet.