---
name: "dr_permutate"
section: "1"
platform: "linux"
package: "draai"
version: "20250202-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/dr_permutate"
---

# dr\_permutate(1)

print randomly permutated arguments or stdin

## NAME

dr\_permutate - print randomly permutated arguments or stdin

## SYNOPSIS

**dr\_permutate** *arguments* **dr\_permutate**

## DESCRIPTION

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.

## EXAMPLE

Running

```
 $ dr_permutate foo bar baz
```

could return

```
 bar foo baz
```

.  Running

```
 $ cat <<EOF | dr_permutate
 foo
 bar
 baz
```

could return

```
 bar
 foo
 baz
```

.

## 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)](/shuf/1.md) implements the same functionality in a better way, you're probably better off using that.

## SEE ALSO

http://packages.debian.org/randomize-lines

[**unsort**(1)](/unsort/1.md), by Wessel Dankers.

## COPYRIGHT

Copyright: (c) 2001 Joost van Baal

This script is in the public domain.

## AUTHOR

Joost van Baal \<joostvb@mdcc.cx\>
