Documentation ¶
Overview ¶
Shuffle randomly permutes its input lines.
Usage:
shuffle [-b] [-g regexp] [-m max] [file...]
Shuffle reads the named files, or else standard input and then prints a random permutation of the input lines.
The -b flag causes shuffle to shuffle blocks of non-blank lines in the input (separated by blank lines) rather than individual lines.
The -g flag only shuffles lines or blocks matching the regexp.
The -m flag specifies the maximum number of lines (or blocks) to print. When -m is given, shuffle requires memory only for the output, not for the entire input.
Click to show internal directories.
Click to hide internal directories.