1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/shuf.md

20 lines
305 B
Markdown
Raw Normal View History

2014-09-08 13:27:44 +04:00
# shuf
> generate random permutations
- randomize strings position in file
`shuf {{filename}}`
- generate random numbers in range
2014-09-10 13:48:17 +04:00
`shuf -i {{low}}-{{high}}`
2014-09-08 13:27:44 +04:00
- take first n results from output
`shuf -n {{n}} {{filename}}`
- write output to another file
`shuf -o {{another_filename}} {{filename}}`