dr_permutate

Langue: en

Version: 2009-12-16 (ubuntu - 24/10/10)

Section: 1 (Commandes utilisateur)

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.

SEE ALSO

http://packages.debian.org/randomize-lines Copyright: AX 2001 Joost van Baal

This script is in the public domain.

AUTHOR

Joost van Baal <joostvb@mdcc.cx>