shuf
From Wikipedia, the free encyclopedia
Script error: No such module "For".
Page Module:Infobox/styles.css has no content.
| shuf | |
|---|---|
| Operating system | Unix and Unix-like |
| Platform | Cross-platform |
| Type | Command |
| License | coreutils: GNU GPL v3 |
| Website | Script error: No such module "WikidataIB". |
Script error: No such module "Check for conflicting parameters".
Page Template:Mono/styles.css has no content.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 shuf bundled in GNU coreutils was written by Paul Eggert. It is not a part of POSIX.[1]
Example
$ ls
Wikibooks Wikipedia Wiktionary
$ # Shuffles input
$ ls | shuf
Wikipedia
Wiktionary
Wikibooks
$ # Picks one random line from input
$ ls | shuf -n1
Wikipedia
See also
- Page Template:Mono/styles.css has no content.sort -R
- Page Template:Mono/styles.css has no content.sort --random-sort
References
Page Template:Reflist/styles.css has no content.
Lua error in package.lua at line 80: module 'Module:Navbox/configuration' not found. Template:Core Utilities commands