Shuf
is a command-line utility included in the textutils package of GNU Core Utilities for creating a standard output consisting of random permutations of the input.[src] The version of shuf bundled in GNU coreutils was written by Paul Eggert.[src] It is not a part of POSIX.[src]
is a command-line utility included in the textutils package of GNU Core Utilities for creating a standard output consisting of random permutations of the input.[src] The version of shuf bundled in GNU coreutils was written by Paul Eggert.[src] It is not a part of POSIX.[src] ==Example== $ ls Wikibooks Wikipedia Wiktionary $ # Shuffles input $ ls | shuf Wikipedia Wiktionary Wikibooks $ # Picks one random line from input $ ls | shuf -n1 Wikipedia ==See also== ==References==[src]
7 sentences · 7 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Shuf." encyclopegia.org, 2026, https://encyclopegia.org/wiki/shuf. Accessed 28 November 2026.
Chicago
"Shuf." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/shuf.
APA
encyclopegia.org. (2026). Shuf. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/shuf
Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON