aboutsummaryrefslogtreecommitdiff
path: root/coreutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-08-23 15:48:22 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-08-23 15:48:22 +0200
commitd59f539d577ebf6100f1292e27560514e8a18195 (patch)
tree007dff0043edd7041e834279a75535b69a24000f /coreutils
parent1b661122a8bf00e9fb493c8fc144d7822ce05816 (diff)
downloadbusybox-w32-d59f539d577ebf6100f1292e27560514e8a18195.tar.gz
busybox-w32-d59f539d577ebf6100f1292e27560514e8a18195.tar.bz2
busybox-w32-d59f539d577ebf6100f1292e27560514e8a18195.zip
shuf: tweak --help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils')
-rw-r--r--coreutils/shuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/coreutils/shuf.c b/coreutils/shuf.c
index 3b2ba93cf..4b41d5e71 100644
--- a/coreutils/shuf.c
+++ b/coreutils/shuf.c
@@ -17,14 +17,14 @@
17//kbuild:lib-$(CONFIG_SHUF) += shuf.o 17//kbuild:lib-$(CONFIG_SHUF) += shuf.o
18 18
19//usage:#define shuf_trivial_usage 19//usage:#define shuf_trivial_usage
20//usage: "[-e|-i L-H] [-n NUM] [-o FILE] [-z] [FILE|ARG...]" 20//usage: "[-n NUM] [-o FILE] [-z] [FILE | -e [ARG...] | -i L-H]"
21//usage:#define shuf_full_usage "\n\n" 21//usage:#define shuf_full_usage "\n\n"
22//usage: "Randomly permute lines\n" 22//usage: "Randomly permute lines\n"
23//usage: "\n -e Treat ARGs as lines"
24//usage: "\n -i L-H Treat numbers L-H as lines"
25//usage: "\n -n NUM Output at most NUM lines" 23//usage: "\n -n NUM Output at most NUM lines"
26//usage: "\n -o FILE Write to FILE, not standard output" 24//usage: "\n -o FILE Write to FILE, not standard output"
27//usage: "\n -z NUL terminated output" 25//usage: "\n -z NUL terminated output"
26//usage: "\n -e Treat ARGs as lines"
27//usage: "\n -i L-H Treat numbers L-H as lines"
28 28
29#include "libbb.h" 29#include "libbb.h"
30 30
@@ -50,7 +50,7 @@ static void shuffle_lines(char **lines, unsigned numlines, unsigned outlines)
50 50
51 srand(monotonic_us()); 51 srand(monotonic_us());
52 52
53 for (i = numlines-1; outlines > 0; i--, outlines--) { 53 for (i = numlines - 1; outlines > 0; i--, outlines--) {
54 r = rand(); 54 r = rand();
55 /* RAND_MAX can be as small as 32767 */ 55 /* RAND_MAX can be as small as 32767 */
56 if (i > RAND_MAX) 56 if (i > RAND_MAX)