shuffle(1) General Commands Manual shuffle(1)

shuffle - randomly reorder lines in a file

shuffle [ infile [ outfile ] ]

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


The following operands are supported:

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

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

12 Apr 1999