mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
19 lines
305 B
Markdown
19 lines
305 B
Markdown
# shuf
|
|
|
|
> generate random permutations
|
|
|
|
- randomize strings position in file
|
|
|
|
`shuf {{filename}}`
|
|
|
|
- generate random numbers in range
|
|
|
|
`shuf -i {{low}}-{{high}}`
|
|
|
|
- take first n results from output
|
|
|
|
`shuf -n {{n}} {{filename}}`
|
|
|
|
- write output to another file
|
|
|
|
`shuf -o {{another_filename}} {{filename}}`
|