Scroll to navigation

WDIFF(1) User Commands WDIFF(1)


wdiff - display word differences between text files


wdiff [OPTION]... FILE1 FILE2
wdiff -d [OPTION]... [FILE]


wdiff - Compares words in two files and report differences.

Mandatory arguments to long options are mandatory for short options too.

display copyright then exit
-1, --no-deleted
inhibit output of deleted words
-2, --no-inserted
inhibit output of inserted words
-3, --no-common
inhibit output of common words
automatically calls a pager
use single unified diff as input
display this help then exit
fold character case while comparing
variation of printer mode for "less"
do not extend fields through newlines
overstrike as for printers
say how many words deleted, inserted etc.
use termcap as for terminal displays
display program version then exit
string to mark beginning of delete region
string to mark end of delete region
string to mark beginning of insert region
string to mark end of insert region


Some options that used to provide some unique functionality are no longer recommended, but still recognized for the sake of backwards compatibility.

Now synonymous to --terminal, which never initializes the terminal.


Written by Franc,ois Pinard <>.


Report bugs to <>.


Copyright © 1992, 1997, 1998, 1999, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


The full documentation for wdiff is maintained as a Texinfo manual. If the info and wdiff programs are properly installed at your site, the command

info wdiff

should give you access to the complete manual.

April 2014 wdiff 1.2.2