1DWFILTER(1) reformat text for processing DWFILTER(1)
2
3
4
6 dwfilter - reformat text with dwdiff for further processing
7
9 dwfilter [OPTIONS] OLD FILE NEW FILE POST PROCESSOR [POST PROCESSOR
10 OPTIONS]
11
13 dwfilter reformats the text in the old file according to the contents
14 of the new file (or vice versa) and subsequently passes the reformated
15 old file and the new file through a secondary filter. It's main use is
16 to allow visual diff programs such as meld and kdiff3 to be used, even‐
17 though a text file has been reformated after editing. A further use is
18 to allow the creation of small patches even when the new text has been
19 reformated. dwfilter uses dwdiff for reformatting.
20
22 -r, --reverse
23 Reformat the new file based on the contents of the old file
24 instead of the default where the old file is reformated based on
25 the contents of the new file.
26
27 dwfilter accepts the following dwdiff options:
28
29 -d delimiters, --delimiters=delimiters
30 -P, --punctuation
31 -W whitespace, --whitespace=whitespace
32 -i, --ignore-case
33 -I, --ignore-formatting
34 -D option, --diff-option=option
35 -Cnum, --context=num
36 -mnum, --match-context=num
37 --aggregate-changes
38 --wdiff-output
39
40 See the dwdiff manual page for the meaning.
41
42 A single dash (-) as a file can be used to denote standard input. Only
43 one file can be read from standard input. To stop dwfilter from inter‐
44 preting file names that start with a dash as options, one can specify a
45 double dash (--) after which dwfilter will interpret any following
46 arguments as files to read.
47
49 If you think you have found a bug, please check that you are using the
50 latest version of dwdiff <http://os.ghalkes.nl/dwdiff.html>. When
51 reporting bugs, please include a minimal example that demonstrates the
52 problem.
53
55 G.P. Halkes <dwdiff@ghalkes.nl>
56
58 Copyright © 2006-2010 G.P. Halkes
59 dwdiff is licensed under the GNU General Public License version 3.
60 For more details on the license, see the file COPYING in the documenta‐
61 tion directory. On Un*x systems this is usually
62 /usr/share/doc/dwdiff-2.0.9.
63
65 dwdiff(1), diff(1), meld(1), kdiff3(1)
66
67
68
69Version 2.0.9 2013/03/10 DWFILTER(1)