Skip to content

shuf option descriptions are different from GNU, which could cause some confusion #193

@JalonSolov

Description

@JalonSolov

Help output differences...

Current shuf:

shuf (V coreutils) 0.0.1
-----------------------------------------------
Usage: shuf [options] [ARGS]

Description: Shuffles its input by outputting a random permutation of its input lines

Options:
  -e, --echo                Treat each command-line operand as an input line
  -i, --input-range <string>
                            Act as if input came from a file containing the range of unsigned decimal integers lo…hi, one per line
  -n, --head-count <int>    Output at most count lines. By default, all input lines are output
  -o, --output <string>     Write output to output-file instead of standard output
  --random-source <string>  Use file as a source of random data used to determine which permutation to generate
  -r, --repeat              Repeat output values
  -z, --zero-terminated     Delimit items with a zero byte rather than a newline
  -h, --help                display this help and exit
  --version                 output version information and exit

Help us make V Coreutils better, by contributing your suggestions,
ideas and pull requests in https://github.com/vlang/coreutils

GNU shuf:

Usage: shuf [OPTION]... [FILE]
  or:  shuf -e [OPTION]... [ARG]...
  or:  shuf -i LO-HI [OPTION]...
Write a random permutation of the input lines to standard output.

With no FILE, or when FILE is -, read standard input.

Mandatory arguments to long options are mandatory for short options too.
  -e, --echo                treat each ARG as an input line
  -i, --input-range=LO-HI   treat each number LO through HI as an input line
  -n, --head-count=COUNT    output at most COUNT lines
  -o, --output=FILE         write result to FILE instead of standard output
      --random-source=FILE  get random bytes from FILE
  -r, --repeat              output lines can be repeated
  -z, --zero-terminated     line delimiter is NUL, not newline
      --help        display this help and exit
      --version     output version information and exit

Report bugs to: [email protected]
GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
General help using GNU software: <https://www.gnu.org/gethelp/>
Full documentation <https://www.gnu.org/software/coreutils/shuf>
or available locally via: info '(coreutils) shuf invocation'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions