snippetbashTip
wdiff — Display word differences between text files. More information: <https://www.gnu.org/software/wdiff/m
Viewed 0 times
wdiffcommandbetweentextcliworddifferencesdisplay
Problem
How to use the
wdiff command: Display word differences between text files. More information: <https://www.gnu.org/software/wdiff/manual/wdiff.html#wdiff-invocation>.Solution
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}}Code Snippets
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}}Context
tldr-pages: common/wdiff
Revisions (0)
No revisions yet.