{{Short description|1991 GNU Unix command}} {{lowercase}} {{for|the district in Lebanon|Chouf District}} {{Infobox software | name = shuf | logo = | screenshot = | screenshot size = | caption = | author = | developer = | released = | latest release version = | latest release date = | operating system = Unix and Unix-like | platform = Cross-platform | genre = Command | license = coreutils: GNU GPL v3 | website = }} {{mono|'''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.
The version of <code>shuf</code> bundled in GNU coreutils was written by Paul Eggert. It is not a part of POSIX.<ref>{{man|1|shuf|ManKier}}</ref>
==Example== <syntaxhighlight lang="console"> $ ls Wikibooks Wikipedia Wiktionary $ # Shuffles input $ ls | shuf Wikipedia Wiktionary Wikibooks $ # Picks one random line from input $ ls | shuf -n1 Wikipedia </syntaxhighlight>
==See also== * {{mono|sort -R}} * {{mono|sort --random-sort}}
==References== {{Reflist}}
{{Unix commands}} {{Core Utilities commands}}
Category:Unix text processing utilities
{{unix-stub}}