ghalkes:~# command line tools

dwdiff

About dwdiff

dwdiff is a diff program that operates at the word level instead of the line level. It is different from wdiff in that it allows the user to specify what should be considered whitespace, and in that it takes an optional list of characters that should be considered delimiters. Delimiters are single characters that are treated as if they are words, even when there is no whitespace separating them from preceding words or delimiters. dwdiff is mostly commandline compatible with wdiff. Only the --autopager, --terminal and --avoid-wraps options are not supported.

The default output from dwdiff is the new text, with the deleted and inserted parts annotated with markers. Command line options are available to change both what is printed, and the markers.

News

dwdiff version 2.0.9 released

This release fixes the configure script in 2.0.8, which contained a typo.

05-Jan-2014

dwdiff version 2.0.8 released

This release fixes building against new glibc versions, which don't by default export pid_t from unistd.h, and updates the grapheme breaking for Unicode Regional Indicators (if supported by the ICU version compiled against).

04-Jan-2014

dwdiff version 2.0.7 released

This is a fixed release of 2.0.6, which accidentally did not contain the changes from the 2.0.5 release.

12-Sep-2013

dwdiff version 2.0.6 released

This release fixes incorrect line numbering caused by optimized printing of differences preceeded in both files by whitespace containing newlines.

12-Sep-2013

dwdiff version 2.0.5 released

This release fixes a bug in the handling of context, which caused incorrect diffs to be printed. In some cases text was reported both as removed and as common.

30-Jun-2013

dwdiff version 2.0.4 released

This release fixes a bug in the memory allocation code, which could be triggered by using large values for the -m option.

12-Jun-2012

Download

The source for dwdiff is available here. Older releases are available here.

Several Linux distributions and BSD version are shipping dwdiff packages or build scripts/ports, for example Fedora Linux, FreeBSD and OpenBSD. For some Unix variants or derivatives, dwdiff packages are provided through external repositories:

If your distribution does not provide dwdiff packages, you can either build dwdiff from source, or you can try filing a feature request with the maintainers of your distribution.

Contact

You can reach me at: dwdiff @ REMOVE ghalkes.nl.
Releases are also announced on the mailing list
If you wish to help with translations, go to the Transifex.net page for dwdiff.

Copyright Notice

Copyright © 2006-2013 G.P. Halkes and others
dwdiff is distributed under the GNU General Public License version 3.

Versions of dwdiff before 1.3 were distributed under the Open Software License version 2.0.