Scroll to navigation

shuf(1) General Commands Manual shuf(1)

NAME

shuf - Shuffle the input by outputting a random permutation of input lines. Each output permutation is equally likely. With no FILE, or when FILE is -, read standard input.

SYNOPSIS

shuf [-e|--echo] [-i|--input-range] [-n|--head-count] [-o|--output] [--random-source] [-r|--repeat] [-z|--zero-terminated] [-h|--help] [-V|--version] [file-or-args]

DESCRIPTION

Shuffle the input by outputting a random permutation of input lines. Each output permutation is equally likely. With no FILE, or when FILE is -, read standard input.

OPTIONS

treat each ARG as an input line
treat each number LO through HI as an input line
output at most COUNT lines
write result to FILE instead of standard output
get random bytes from FILE
output lines can be repeated
line delimiter is NUL, not newline
Print help
Print version
[file-or-args]

VERSION

v0.0.26

shuf 0.0.26