diff options
author | Assaf Gordon <assafgordon@gmail.com> | 2013-07-04 13:26:45 -0600 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2013-07-11 01:17:31 +0100 |
commit | 3a84293987bd21a92071a3d1c605ec9a2b3af1b4 (patch) | |
tree | 66aedec3a3800ba35045921fadb63fea557077e6 /man | |
parent | f3fa3b2990c13623b80439039a92f72e08bb42be (diff) | |
download | coreutils-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 'man')
0 files changed, 0 insertions, 0 deletions