diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-08-23 15:48:22 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-08-23 15:48:22 +0200 |
commit | d59f539d577ebf6100f1292e27560514e8a18195 (patch) | |
tree | 007dff0043edd7041e834279a75535b69a24000f /coreutils/shuf.c | |
parent | 1b661122a8bf00e9fb493c8fc144d7822ce05816 (diff) |
shuf: tweak --help text
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/shuf.c')
-rw-r--r-- | coreutils/shuf.c | 8 |
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 @@ //kbuild:lib-$(CONFIG_SHUF) += shuf.o //usage:#define shuf_trivial_usage -//usage: "[-e|-i L-H] [-n NUM] [-o FILE] [-z] [FILE|ARG...]" +//usage: "[-n NUM] [-o FILE] [-z] [FILE | -e [ARG...] | -i L-H]" //usage:#define shuf_full_usage "\n\n" //usage: "Randomly permute lines\n" -//usage: "\n -e Treat ARGs as lines" -//usage: "\n -i L-H Treat numbers L-H as lines" //usage: "\n -n NUM Output at most NUM lines" //usage: "\n -o FILE Write to FILE, not standard output" //usage: "\n -z NUL terminated output" +//usage: "\n -e Treat ARGs as lines" +//usage: "\n -i L-H Treat numbers L-H as lines" #include "libbb.h" @@ -50,7 +50,7 @@ static void shuffle_lines(char **lines, unsigned numlines, unsigned outlines) srand(monotonic_us()); - for (i = numlines-1; outlines > 0; i--, outlines--) { + for (i = numlines - 1; outlines > 0; i--, outlines--) { r = rand(); /* RAND_MAX can be as small as 32767 */ if (i > RAND_MAX) |