SHUFFLE
— Dump randomized
lines from a text file.
Syntax:
SHUFFLE
/A:
attribs /B /CP:
n /H /J /L /M:
n /N /P /S
filename…
/A: attribs | attributes mask; valid flags are -ACEHIORS |
/B | discard blank lines |
/CP: n | interpret non-Unicode input text using code page n |
/H | display the filename before each file |
/J | show line numbers (original) |
/L | show line numbers (new) |
/M: n | maximum number of lines to show |
/N | disable features |
/P | page output |
/S | search in subdirectories for matching files |
… | Range options are also supported. |
SHUFFLE
randomly reorders lines from the specified file.
It can read from disk files or from a pipe. If you want to pipe to
SHUFFLE
, remember that pipes open a new shell. To pipe to a plugin
command, you must either ensure that the plugin is loaded in the transient
shell, e.g. by installing the .DLL file
in the shell’s PlugIns directory; or else
use temporary files or an in-process pipe.
If standard input (stdin) is redirected, SHUFFLE
will read from
stdin before any filenames specified on the
command line. If no filenames are specified, then
SHUFFLE
will read from stdin whether it is redirected or not.
Filenames may include wildcards and directory aliases. You can search into
subdirectories for matching files with /S
. @File lists and
internet files are supported. You may also specify CLIP:
to
read lines from the clipboard.
/NB | do not write a Byte Order Mark |
/NC | disable highlight |
/ND | do not search into hidden directories; only useful with /S |
/NF | suppress the file-not-found error |
/NJ | do not search into junctions; only useful with /S |
/NZ | do not search into system directories; only useful with /S |
You can combine these, e.g. /NDJ
.
shuffle /b "engine summer.txt"