mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
18 lines
426 B
Plaintext
18 lines
426 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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`
|