AptLynx

Command-line tool

wdiff

brew/wdiff

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Display word differences between text files

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install wdiff

Linux

brew install wdiff

Compare two files

wdiff path/to/file1 path/to/file2

Ignore case when comparing

wdiff -i path/to/file1 path/to/file2

Display how many words are deleted, inserted, or replaced

wdiff -s path/to/file1 path/to/file2

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents