logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

dr_permutate - print randomly permutated arguments or stdin

Author

       Joost van Baal <joostvb@mdcc.cx>

draai 20250202                                     2023-09-20                                    DR_PERMUTATE(1)

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.

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.

Name

       dr_permutate - print randomly permutated arguments or stdin

See Also

http://packages.debian.org/randomize-linesunsort(1), by Wessel Dankers.

Synopsis

dr_permutateargumentsdr_permutate

See Also