dr_permutate(1)

dr_permutate1

Print randomly permutated arguments or stdin

Usage

dr_permutate arguments dr_permutate

Overview

When called with arguments, dr_permutate returns its arguments in randomly permutated order, space separated. When called without any arguments, dr_permuate expects a line-oriented file on stdin. It returns the contents of this file, with lines randomly permutated.

Examples

Running

 $ dr_permutate foo bar baz

could return

 bar foo baz

. Running

 $ cat <<EOF | dr_permutate
 foo
 bar
 baz

could return

 bar
 foo
 baz

.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 5 times.

  1. 6.0–7
  2. 8
  3. 9
  4. 10
  5. 11–12
  6. 13

History

This script was initially written on 2001-05-06.

Bugs

When called without any arguments, stdin is read in core entirely.

The GNU coreutils utility shuf(1) implements the same functionality in a better way, you're probably better off using that.

Author

Joost van Baal <[email protected]>

From draai 20250202-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.