Reference

shuffle(1)

randomly reorder lines in a file

NAME

shuffle - randomly reorder lines in a file

SYNOPSIS

shuffle [ infile [ outfile ] ]

DESCRIPTION

shuffle reads infile into memory, shuffles the lines, and writes the result to outfile.

OPTIONS

None.

OPERANDS

The following operands are supported:

infile

A path name of an input file. If no infile is specified, or if infile is equal to "-", the standard input is used.

outfile

A path name of an output file. If no outfile is specified, or if outfile is equal to "-", the standard output is used.

NOTES

Since shuffle reads the input into memory, it may fail on very large files.

History

--nodesc until Debian 13 (Trixie); -0 until Debian 13 (Trixie); -1 until Debian 13 (Trixie); -B until Debian 13 (Trixie); -d until Debian 13 (Trixie); -h until Debian 13 (Trixie); -l until Debian 13 (Trixie); -r until Debian 13 (Trixie).