combine/permute a list from a file or pipe

Description:
combo -[pc]
Perform combinatoric transformations on a list of elements
separated by newline. Input may be a filename, or '-' to
read from STDIN. Combinations/Permutations are written to
STDOUT, one per line, with elements separated by tab.
Options:
-p permute list; this is the default behavior
-c combine list; this parameter requires an integer value
for how many of the list elements should be included
in the combination
Examples:
head -5 /etc/passwd | shuffle -p -
head -5 /etc/passwd | shuffle -c 2 -

Author's Email:
allenday@ucla.edu

Author's Full Name:
Allen Day

Author's Homepage:
http://search.cpan.org/~allenday

Script File:
combo.gz (746 bytes)