Debian Codegraph @

NEWS

raw
1
2
3 * Noteworthy changes in release 1.9 (2025-04-05) [stable]
4
5 ** Changes in Behavior
6
7 datamash(1), decorate(1): Add short options -h and -V for --help and --version
8 respectively.
9
10 datamash(1): the rand operation now uses getrandom(2) for generating a random
11 seed, instead of relying on date/time/pid mixing.
12
13 ** New Features
14
15 datamash(1): add operation dotprod for calculating the scalar product of two
16 columns.
17
18 datamash(1): Add option -S/--seed to set a specific seed for pseudo-random
19 number generation.
20
21 datamash(1): Add option --vnlog to enable experimental support for the vnlog
22 format. More about vnlog is at https://github.com/dkogan/vnlog.
23
24 datamash(1): -g/groupby takes ranges of columns (e.g. 1-4)
25
26 ** Bug Fixes
27
28 datamash(1) now correctly calculates the "antimode" for a sequence
29 of numbers. Problem reported by Kingsley G. Morse Jr. in
30 <https://lists.gnu.org/archive/html/bug-datamash/2023-12/msg00003.html>.
31
32 When using the locale's decimal separator as field separator, numeric
33 datamash(1) operations now work correctly. Problem reported by Jérémie
34 Roquet in
35 <https://lists.gnu.org/archive/html/bug-datamash/2018-09/msg00000.html>
36 and by Jeroen Hoek in
37 <https://lists.gnu.org/archive/html/bug-datamash/2023-11/msg00000.html>.
38
39 datamash(1): The "getnum" operation now stays inside the specified field.
40
41
42 * Noteworthy changes in release 1.8 (2022-07-23) [stable]
43
44 ** Changes in Behavior
45
46 Schedule -f/--full combined with non-linewise operations for deprecation.
47 In a future release, -f/--full will only be usable with operations where
48 it makes sense. For now, we print a warning to stderr when -f/--full is
49 used with non-linewise operations, and such usage will no longer be
50 supported.
51
52 The bin operation now uses more intuitive bins. Previously, a command
53 such as `datamash bin 1 <<< -0` would output -100; and -100 did not fall
54 in its own bin. We now require all bins to take the form `[nx,(n+1)x)`
55 with integer n and bin width x. We discard the sign on -0 and gate such
56 inputs into the [0,x) bin.
57
58 Operations taking more than one argument now provide more complete output
59 with --header-out. Previously, an operation such as `pcov x:y` would
60 produce an output header like `pcov(y)`, discarding the `x`. The new
61 behavior will output header `pcov(x,y)`.
62
63 datamash(1) no longer ignores --output-delimiter with the rmdup operation.
64
65 ** New Features
66
67 New datamash option --sort-cmd argument to specify the program used
68 by the -s option to sort input, plus enhancements to the security and
69 portability of building sort command lines.
70
71 New datamash option -c/--collapse-delimiter=X argument uses character
72 X instead of comma between values in collapse and unique lists.
73
74 New datamash operations: mean square (ms) and root mean square (rms).
75
76 Decorate now supports sorting IP addresses of both versions 4 and 6
77 together. IPv4 addresses are logically converted to IPv6 addresses,
78 either as IPv4-Mapped (ipv6v4map) or IPv4-Compatible (ipv6v4comp)
79 addresses.
80
81 Add two command aliases:
82 'echo' may now be used instead of 'cut'.
83 'uniq' may now be used instead of 'unique'.
84
85 ** Improvements
86
87 Updated the bash completion script to reflect recent additions.
88
89 ** Bug Fixes
90
91 Datamash now passes the -z/--zero-terminated flag to the sort(1) child
92 process when used with "--sort --zero-terminated". Additionally,
93 if the system's sort(1) does not support -z, datamash reports the error
94 and exits. Previously it would omit the "-z" when running sort(1),
95 resulting in incorrect results.
96
97 Documentation fixes and spelling corrections.
98
99 Incorrect format in a decorate(1) error breaking compilation on some
100 systems.
101
102 datamash(1), decorate(1): Fix some minor memory leaks.
103
104 datamash(1) no longer crashes when the unique or countunique operations
105 are used with input data containing NUL bytes. The problem was reported
106 in https://lists.gnu.org/archive/html/bug-datamash/2020-11/msg00001.html
107 by Catalin Patulea.
108
109 datamash(1) no longer crashes when crosstab with --header-in is called
110 by field name instead of index. I.e. `datamash --header-in ct x,y` now
111 works as expected.
112
113
114 * Noteworthy changes in release 1.7 (2020-04-23) [testing]
115
116 ** New Features
117
118 decorate(1): new program - sorts input in non-standard ordering, e.g.
119 IPv4, IPv6, roman numerals.
120
121 New operations: sha224/sha384.
122
123 New operations: geomean (Geometric mean) and harmmean (Harmonic mean).
124
125
126 * Noteworthy changes in release 1.6 (2020-02-24) [stable]
127
128 ** Bug Fixes
129
130 The 'gutnum' operation (introduced in vresion 1.5) now correctly
131 prints detected numbers without truncating them.
132
133
134 * Noteworthy changes in release 1.5 (2019-09-17) [stable]
135
136 ** New Features
137
138 Datamash now accepts backslash-escaped characters in field names.
139 This allows working with named fields containing dash/mins,colons,commas
140 or field names starting with digits (Note the interplay between
141 backslash and shell quoting). The following are equivalent,
142 and sum an input field named 'FOO-BAR':
143 datamash -H sum FOO\\-BAR < input.txt
144 datamash -H sum 'FOO\-BAR' < input.txt
145 datamash -H sum "FOO\\-BAR" < input.txt
146
147 New operations: dirname, basename
148 These behave just like dirname(1) and basename(1):
149 $ echo /home/foo/bar.txt | datamash dirname 1 basename 1
150 /home/foo bar.txt
151
152 New operations: extname, barename
153 'extname' extract the extension of the file name.
154 'barename' (not to be confused with 'basename') extract the basename
155 without the extension.
156 Example:
157 $ echo /home/foo/bar.tar.gz | datamash barename 1 extame 1
158 bar tar.gz
159
160 New operation: getnum
161 This operation extracts a number from a string.
162 'getnum' accepts an optional single letter option:
163 getnum:n - natural numbers (positive integers, including zero)
164 getnum:i - integers
165 getnum:d - decimal point numbers
166 getnum:p - positive decimal point numbers (this is the default)
167 getnum:h - hex numbers
168 getnum:o - octal numbers
169 Examples:
170 $ echo foo-42.0-bar | datamash getnum 1
171 42.0
172 $ echo foo-42.0-bar | datamash getnum:n 1
173 42
174 $ echo foo-42.0-bar | datamash getnum:i 1
175 -42
176 $ echo foo-42.0-bar | datamash getnum:d 1
177 -42.0
178
179 New operation: cut
180 Similar to cut(1), it copies the input field to the output as-is.
181 The advantage over cut(1) is that combined with datamash's other features,
182 input fields can be specified by name instead of column number, and
183 output fields can be re-ordered and duplicated.
184 Example:
185 $ printf "a b c\n1 X 6\n" | datamash -W -H cut c,a,c
186 cut(c) cut(a) cut(c)
187 6 1 6
188
189 ** Bug fixes
190
191 Datamash now correctly calculates mode/antimode for negative values.
192 In version 1.4 and earlier, the following produced incorrect results:
193 $ echo -1 | datamash-1.4 mode 1
194 1.844674407371e+19
195
196
197
198 * Noteworthy changes in release 1.4 (2018-12-22) [stable]
199
200 ** New Features
201
202 New option: -C/--skip-comments to skip comment lines (lines starting
203 with '#' or ';' and optional whitespace).
204
205
206 * Noteworthy changes in release 1.3 (2018-03-16) [stable]
207
208 ** New Features
209
210 New option: --format=FMT sets printf style floating-point format.
211 Example:
212 $ echo '50.5' | datamash --format "%07.3f" sum 1
213 050.500
214 $ echo '50.5' | datamash --format "%07.3e" sum 1
215 5.050e+01
216
217 New option: -R/--round=N rounds numeric values to N decimal places.
218
219 New option: --output-delimiter=X overrides -t/-W.
220
221 New operation: trimmean (trimmed mean value).
222 To calculate 20% trimmed mean:
223 $ printf "%s\n" 13 3 7 33 3 9 | datamash trimmean:0.2 1
224 8
225
226
227 ** Bug fixes
228
229 Datamash now builds correctly with external OpenSSL libraries
230 (./configure --with-openssl=yes). The 'configure' script now reports
231 whether internal or external libraries are used:
232
233 $ ./configure [OPTIONS]
234 [...]
235 Configuration summary for datamash
236 md5/sha*: internal (gnulib)
237 OR
238 md5/sha*: external (-lcrypto)
239
240
241 * Noteworthy changes in release 1.2 (2017-08-22) [stable]
242
243 ** New Features
244
245 New operations:
246 perc (percentile),
247 range (max-min of values in group/column)
248
249 Improved 'check' operation:
250 Expected number of lines/fields can be specified as parameter.
251
252 ** Improvements
253
254 Improved bash-completion script installation path (see README for details).
255
256
257 * Noteworthy changes in release 1.1.1 (2017-01-19) [stable]
258
259 ** Bug fixes
260
261 'check' command correctly counts a trailing delimiter at end of lines.
262
263 'transpose' command correctly handles missing fields on the last line.
264
265
266 * Noteworthy changes in release 1.1.0 (2016-01-16) [stable]
267
268 ** New Features
269
270 Bumped version to 1.1.0 to better comply to semver.
271
272 New operations:
273 crosstab (cross-tabulation / pivot-tables),
274 check (verify tabular structure),
275 bin (bin numeric values)
276 strbin (bin strings values)
277 pearson correlation,
278 covariance,
279 rounding functions: round,floor,ceil,trunc,frac
280
281 ** Improvements
282
283 Speed, Portability, Tests, Coverage improvements.
284
285
286 * Noteworthy changes in release 1.0.7 (2015-06-29) [stable]
287
288 ** New Features
289
290 New operations: md5, sha1/256/512, base64, rmdup.
291
292 New option --narm to ignore NaN/NA values.
293
294 New feature: ability to specify field by names instead of numbers
295 (require using --header-in or -H).
296
297 New translations added.
298
299 ** Improvements
300
301 Speed, Portability, Coverage improvements.
302
303
304 * Noteworthy changes in release 1.0.6 (2014-07-29) [stable]
305
306 ** New Features
307
308 New operations: transpose, reverse.
309
310 ** Improvements
311
312 Tests: improve portability, add I/O error tests, add few edge-case tests.
313
314 Build: improve man-page generation, cross-compiling, auxiliary build scripts.
315
316 Documentation: expand and fix man-page (and shorten --help screen).
317
318
319 * Noteworthy changes in release 1.0.5 (2014-07-15) [stable]
320
321 First release as GNU Datamash.