shuffle(1)

shuffle1

Randomly reorder lines in a file

Usage

shuffle [infile [outfile]]

Overview

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.

Releases

11 releases since Debian 4.0 (Etch); the text changed 2 times.

  1. 4.0
  2. 5.0–13
  3. Arch

--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).

From shuffle 1.6-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.