Provided by: draai_20180521-1_all
dr_permutate - print randomly permutated arguments or stdin
dr_permutate arguments dr_permutate
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.
Running $ dr_permutate foo bar baz could return bar foo baz . Running $ cat <<EOF | dr_permutate foo bar baz could return bar foo baz .
This script was initially written on 2001-05-06.
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.
http://packages.debian.org/randomize-lines unsort(1), by Wessel Dankers.
Copyright: (c) 2001 Joost van Baal This script is in the public domain.
Joost van Baal <email@example.com>