summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorAssaf Gordon <assafgordon@gmail.com>2013-07-04 13:26:45 -0600
committerPádraig Brady <P@draigBrady.com>2013-07-11 01:17:31 +0100
commit3a84293987bd21a92071a3d1c605ec9a2b3af1b4 (patch)
tree66aedec3a3800ba35045921fadb63fea557077e6 /NEWS
parentf3fa3b2990c13623b80439039a92f72e08bb42be (diff)
downloadcoreutils-3a84293987bd21a92071a3d1c605ec9a2b3af1b4.tar.xz
shuf: add --repetition to support repetition in output
main(): Process new option. Replace input_numbers_option_used() with a local variable. Re-organize argument processing. usage(): Describe the new option. (write_random_numbers): A new function to generate a permutation of the specified input range with repetition. (write_random_lines): Likewise for stdin and --echo. (write_permuted_numbers): New function refactored from write_permuted_output(). (write_permuted_lines): Likewise. * tests/misc/shuf.sh: Add tests for --repetitions option. * doc/coreutils.texi: Mention --repetitions, add examples. * TODO: Mention an optimization to avoid needing to read all of the input into memory with --repetitions. * NEWS: Mention new shuf option.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 53c9f4aef..5abaf81f1 100644
--- a/NEWS
+++ b/NEWS
@@ -46,6 +46,9 @@ GNU coreutils NEWS -*- outline -*-
csplit accepts a new option: --suppressed-matched, to elide the lines
used to identify the split points.
+ shuf accepts a new option: --repetitions (-r), to allow repetitions
+ of input items in the permuted output.
+
** Changes in behavior
stdbuf now requires at least one buffering mode option to be specified,