Linux "shuf" Command Line Options and Examples
generate random permutations

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.


Usage:

shuf [OPTION]... [FILE]
    shuf -e [OPTION]... [ARG]...
    shuf -i LO-HI [OPTION]...




Command Line Options:

-e
treat each ARG as an input line
shuf -e ...
-i
treat each number LO through HI as an input line
shuf -i ...
-n
output at most COUNT lines
shuf -n ...
-o
write result to FILE instead of standard output
shuf -o ...
--random-source
get random bytes from FILE
shuf --random-source ...
-r
output lines can be repeated
shuf -r ...
-z
line delimiter is NUL, not newline
shuf -z ...
--help
display this help and exit
shuf --help ...
--version
output version information and exitAUTHORWritten by Paul Eggert.REPORTING BUGSGNU coreutils online help: <http://www.gnu.org/software/coreutils/>Report shuf translation bugs to <http://translationproject.org/team/>COPYRIGHTCopyright © 2017 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later<http://gnu.org/licenses/gpl.html>.This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent per‐mitted by law.
shuf --version ...