File: numdiff.1

package info (click to toggle)
numdiff 5.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,680 kB
  • sloc: ansic: 10,808; sh: 3,383; makefile: 276
file content (290 lines) | stat: -rw-r--r-- 9,995 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.46.4.
.TH NUMDIFF "1" "January 2017" "numdiff 5.9.0" "User Commands"
.SH NAME
numdiff \- compare similar files with numeric fields
.SH DESCRIPTION
Usage:
numdiff \fB\-h\fR|\-\-help|\-v|\-\-version   or
.PP
numdiff [\-s IFS][\-D DELIMS][\-a THRVAL[:RANGE|:RANGE1:RANGE2]][\-r THRVAL[:RANGE|:RANGE1:RANGE2]][\-2][\-F NUM][\-# NUM][\-P][\-N][\-I][\-c CURRNAME][\-d C1C2][\-t C1C2][\-g N1N2][\-p C1C2][\-n C1C2][\-e C1C2][\-i C1C2][\-X 1:RANGE][\-X 2:RANGE][\-E][\-U][\-b][\-V][\-O[NUM]][\-\-raw][\-q][\-S][\-z 1:RANGE][\-z 2:RANGE][\-Z 1:RANGE][\-Z 2:RANGE][\-m][\-H][\-f[NUM]][\-T][\-B][\-l PATH][\-o PATH] FILE1 FILE2
.PP
Compare putatively similar files line by line and field by field,
ignoring small numeric differences or/and different numeric formats.
.PP
RANGE, RANGE1 and RANGE2 stay for a positive integer value or
for a range of integer values, like 1\-, 3\-5 or \fB\-7\fR.
The two arguments after the options are the names of the files to compare.
The complete paths of the files should be given,
a directory name is not accepted.
The given paths cannot refer to the same file
but one of them can be "\-", which refers to stdin.
.PP
Exit status: 1 if files differ, 0 if they are equal, \fB\-1\fR (255) in case of error
.PP
\fB\-s\fR, \fB\-\-separators\fR=\fI\,IFS\/\fR
.IP
Specify the set of characters to use as delimiters
while splitting the input lines into fields
(The default set of delimiters is space, tab and newline).
If IFS is prefixed with 1: or 2:, use the given delimiter set
only for the lines from the first or the second file respectively
.PP
\fB\-D\fR, \fB\-\-delimiters\fR=\fI\,DELIMS\/\fR
.IP
Specify the set of strings to use as delimiters
while splitting the input lines into fields
(The default set of delimiters is space, tab and newline).
If DELIMS is prefixed with 1: or 2:, use the given delimiter set
only for the lines from the first or the second file respectively
.PP
\fB\-a\fR, \fB\-\-absolute\-tolerance\fR=\fI\,THRVAL[\/\fR:RANGE|:RANGE1:RANGE2]
.IP
Set to THRVAL the maximum absolute difference permitted
before two numeric fields are regarded as different
(The default value is zero).
If a RANGE is given, use the specified
threshold only when comparing fields whose positions lie in RANGE.
If both RANGE1 and RANGE2 are given and have the same length,
then use the specified threshold when comparing a field of FILE1
lying in RANGE1 with the corresponding field of FILE2 in RANGE2
.PP
\fB\-r\fR, \fB\-\-relative\-tolerance\fR=\fI\,THRVAL[\/\fR:RANGE|:RANGE1:RANGE2]
.IP
Set to THRVAL the maximum relative difference permitted
before two numeric fields are regarded as different
(The default value is zero).
If a RANGE is given, use the specified
threshold only when comparing fields whose positions lie in RANGE.
If both RANGE1 and RANGE2 are given and have the same length,
then use the specified threshold when comparing a field of FILE1
lying in RANGE1 with the corresponding field of FILE2 in RANGE2
.PP
\fB\-2\fR, \fB\-\-strict\fR
.IP
Consider two numerical values as equal only if
both absolute and relative difference do not exceed
the respective tolerance threshold
.PP
\fB\-F\fR, \fB\-\-formula\fR=\fI\,NUM\/\fR
.IP
Use the formula indicated by NUM to compute the relative errors.
If 'NUM' is 0 use the classic formula.
If 'NUM' is 1 compute the relative errors by considering
the values in FILE1 as sample values.
If 'NUM' is 2 compute the relative errors by considering
the values in FILE2 as sample values.
.PP
\-#, \fB\-\-digits\fR=\fI\,NUM\/\fR
.IP
Set to NUM the number of digits in the significands
used in multiple precision arithmetic
.PP
\fB\-P\fR, \fB\-\-positive\-differences\fR
.IP
Ignore all differences due to numeric fields of the second file that
are less than the corresponding numeric fields in the first file
.PP
\fB\-N\fR, \fB\-\-negative\-differences\fR
.IP
Ignore all differences due to numeric fields of the second file that
are greater than the corresponding numeric fields in the first file
.PP
\fB\-I\fR, \fB\-\-ignore\-case\fR
.IP
Ignore changes in case while doing literal comparisons
.PP
\fB\-c\fR, \fB\-\-currency\fR=\fI\,CURRNAME\/\fR
.IP
Set to CURRNAME the currency name for the two files to compare.
CURRNAME must be prefixed with 1: or 2: to specify the
currency name only for the first or the second file
.PP
\fB\-d\fR, \fB\-\-decimal\-point\fR=\fI\,C1C2\/\fR
.IP
Specify the characters representing the decimal point
in the two files to compare
.PP
\fB\-t\fR, \fB\-\-thousands\-separator\fR=\fI\,C1C2\/\fR
.IP
Specify the characters representing the thousands separator
in the two files to compare
.PP
\fB\-g\fR, \fB\-\-group\-length\fR=\fI\,N1N2\/\fR
.IP
Specify the number of digits forming each group of thousands
in the two files to compare
.PP
\fB\-p\fR, \fB\-\-plus\-prefix\fR=\fI\,C1C2\/\fR
.IP
Specify the (optional) prefixes for positive values
used in the two files to compare
.PP
\fB\-n\fR, \fB\-\-minus\-prefix\fR=\fI\,C1C2\/\fR
.IP
Specify the prefixes for negative values
used in the two files to compare
.PP
\fB\-e\fR, \fB\-\-exponent\-letter\fR=\fI\,C1C2\/\fR
.IP
Specify the exponent letters
used in the two files to compare
.PP
\fB\-i\fR, \fB\-\-imaginary\-unit\fR=\fI\,C1C2\/\fR
.IP
Specify the characters representing the imaginary unit
in the two files to compare
.PP
\fB\-X\fR, \fB\-\-exclude\fR=\fI\,1\/\fR:RANGE
.IP
Select the fields of the first file that have to be ignored
.PP
\fB\-X\fR, \fB\-\-exclude\fR=\fI\,2\/\fR:RANGE
.IP
Select the fields of the second file that have to be ignored
.PP
\fB\-E\fR, \fB\-\-essential\fR
.IP
While printing the differences between the two compared files
show only the numerical ones
.PP
\fB\-U\fR, \fB\-\-dummy\fR
.IP
While printing the differences between the two compared files
neglect all the numerical ones (dummy mode)
.PP
\fB\-b\fR, \fB\-\-brief\fR
.IP
Suppress all messages concerning the differences discovered
in the structures of the two files
.PP
\fB\-V\fR, \fB\-\-verbose\fR
.IP
For every couple of lines which differ in at least one field print
an header to show how these lines appear in the two compared files
.PP
\fB\-O\fR, \fB\-\-overview\fR[=\fI\,NUM\/\fR]
.IP
Display a side by side difference listing of the two files
showing which lines are present only in one file, which
lines are present in both files but with one or more differing fields,
and which lines are identical.
If 'NUM' is zero or is not specified, output at most 130 columns per line.
If 'NUM' is a positive number, output at most 'NUM' columns per line.
If 'NUM' is a negative number, do not output common lines
and display at most \-'NUM' columns per line.
.PP
\fB\-\-raw\fR
.IP
Display the differences between the two compared files
in raw format (not very convenient for humans)
.PP
\fB\-q\fR, \fB\-\-quiet\fR, \fB\-\-silent\fR
.IP
Suppress all the standard output
.PP
\fB\-S\fR, \fB\-\-statistics\fR
.IP
Add some statistics to the standard output
.PP
\fB\-z\fR, \fB\-\-blur\-if\-numerical\fR=\fI\,1\/\fR:RANGE
.IP
Select the fields of the first file that have to be
blurred during the synchronization procedure
only if they turn out to be numeric
.PP
\fB\-z\fR, \fB\-\-blur\-if\-numerical\fR=\fI\,2\/\fR:RANGE
.IP
Select the fields of the second file that have to be
blurred during the synchronization procedure
only if they turn out to be numeric
.PP
\fB\-Z\fR, \fB\-\-blur\-unconditionally\fR=\fI\,1\/\fR:RANGE
.IP
Select the fields of the first file that have to be
unconditionally blurred during the synchronization procedure
.PP
\fB\-Z\fR, \fB\-\-blur\-unconditionally\fR=\fI\,2\/\fR:RANGE
.IP
Select the fields of the second file that have to be
unconditionally blurred during the synchronization procedure
.PP
\fB\-m\fR, \fB\-\-minimal\fR
.IP
During synchronization try hard to find a smaller set of changes
.PP
\fB\-H\fR, \fB\-\-speed\-large\-files\fR
.IP
During synchronization assume large files and
many scattered small changes
.PP
\fB\-f\fR, \fB\-\-test\-filter\fR[=\fI\,NUM\/\fR]
.IP
Run only the filter and then show the results of its
attempt to synchronize the two files.
If 'NUM' is zero or is not specified, output at most 130 columns per line.
If 'NUM' is a positive number, output at most 'NUM' columns per line.
If 'NUM' is a negative number, do not output common lines
and display at most \-'NUM' columns per line.
.PP
\fB\-T\fR, \fB\-\-expand\-tabs\fR
.IP
Expand tabs to spaces in output while displaying the results of the
synchronization procedure (meaningful only together with option \fB\-O\fR or \fB\-f\fR)
.PP
\fB\-B\fR, \fB\-\-binary\fR
.IP
Treat both files as binary files (only meaningful under Doz/Windoz)
.PP
\fB\-l\fR, \fB\-\-warnings\-to\fR=\fI\,PATH\/\fR
.IP
Redirect warning and error messages from stderr to the indicated file
.PP
\fB\-o\fR, \fB\-\-output\fR=\fI\,PATH\/\fR
.IP
Redirect output from stdout to the indicated file
.PP
\fB\-h\fR, \fB\-\-help\fR
.IP
Show help message and predefined settings
.PP
\fB\-v\fR, \fB\-\-version\fR
.IP
Show version number, Copyright, Distribution Terms and NO\-Warranty
.IP
.SH Default numeric format (for both files to compare):
.PP
Currency name = ""
.br
Decimal point = `.'
.br
Thousands separator = `,'
.br
Number of digits in each thousands group = 3
.br
Leading positive sign = `+'
.br
Leading negative sign = `\-'
.br
Prefix for decimal exponent = `e'
.br
Symbol used to denote the imaginary unit = `i'
.SH COPYRIGHT
Copyright \(co 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017  Ivano Primi <ivprimi@libero.it>
.br
License GPLv3+: GNU GPL version 3 or later,
see <http://gnu.org/licenses/gpl.html>.
.br
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.SH "SEE ALSO"
The full documentation for
.B numdiff
is maintained as a Texinfo manual.  If the
.B info
and
.B numdiff
programs are properly installed at your site, the command
.IP
.B info numdiff
.PP
should give you access to the complete manual.