1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-10 14:45:25 +02:00
tldr/pages/common/wdiff.md

17 lines
464 B
Markdown
Raw Normal View History

2024-03-15 04:48:56 +01:00
# wdiff
> Display word differences between text files.
> More information: <https://www.gnu.org/software/wdiff/manual/html_node/wdiff-invocation.html#wdiff-invocation>.
2024-03-15 04:48:56 +01:00
- Compare two files:
`wdiff {{path/to/file1}} {{path/to/file2}}`
- Ignore case when comparing:
`wdiff {{[-i|--ignore-case]}} {{path/to/file1}} {{path/to/file2}}`
2024-03-15 04:48:56 +01:00
- Display how many words are deleted, inserted or replaced:
`wdiff {{[-s|--statistics]}} {{path/to/file1}} {{path/to/file2}}`