wdiff - display word differences between text files


wdiff [OPTION]... FILE1 FILE2


wdiff - Compares words in two files and report differences.

Mandatory arguments to long options are mandatory for short options too.
-A, --ansi-red-green
 highlight deleted text in red, added text in green; using ansi terminal codes
-B, --bold-inserted
 mark inserted text in bold; using ansi terminal codes
-C, --copyright
 print copyright then exit
-K, --no-init-term
 like -t, but no termcap init/term strings
-L dummy, --label=dummy
 dummy option for diff compatibility
-P, --punctuation
 treat punctuation (ispunct()) like whitespace (isspace())
-U, --underline-deleted
 underline deleted text; using ansi terminal codes
-1, --no-deleted
 inhibit output of deleted words
-2, --no-inserted
 inhibit output of inserted words
-3, --no-common
 inhibit output of common words
-a, --auto-pager
 automatically calls a pager
-cN, --context=N
 like -3, but only print N lines of context around each difference. Context blocks are seperated by a horizontal line, and are preceeded by a line of the format ’=== LLL,RRR ===’, where LLL and RRR are current line numbers in the left and right file, respectively.
-h, --help print this help
-i, --ignore-case
 fold character case while comparing
-l, --less-mode
 variation of printer mode for "less"
-n, --avoid-wraps
 do not extend fields through newlines
-p, --printer
 overstrike as for printers
-s, --statistics
 say how many words deleted, inserted etc.
-t, --terminal
 use termcap as for terminal displays
-v, --version
 print program version then exit
-w, --start-delete=STRING
 string to mark beginning of delete region; default ’[-’
-x, --end-delete=STRING
 string to mark end of delete region; default ’-]’
-y, --start-insert=STRING
 string to mark beginning of insert region; default ’{+’
-z, --end-insert=STRING
 string to mark end of insert region; default ’+}’


Written by Franc,ois Pinard <>. Patches by Hans Lermen (1994), Juergen Weigert <>


Report bugs to <>.


Copyright © 1992, 1997 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.

openSUSE Logo