mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
22 lines
536 B
Plaintext
22 lines
536 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# wdiff
|
|
|
|
> Display word differences between text files.
|
|
> More information: <https://www.gnu.org/software/wdiff/manual/wdiff.html#wdiff-invocation>.
|
|
|
|
- Compare two files:
|
|
|
|
`wdiff {{path/to/file1}} {{path/to/file2}}`
|
|
|
|
- Ignore case when comparing:
|
|
|
|
`wdiff {{[-i|--ignore-case]}} {{path/to/file1}} {{path/to/file2}}`
|
|
|
|
- Display how many words are deleted, inserted or replaced:
|
|
|
|
`wdiff {{[-s|--statistics]}} {{path/to/file1}} {{path/to/file2}}`
|