mirror of https://github.com/CrimsonTome/tldr.git
20 lines
294 B
Markdown
20 lines
294 B
Markdown
|
# shuf
|
||
|
|
||
|
> generate random permutations
|
||
|
|
||
|
- randomize strings position in file
|
||
|
|
||
|
`shuf {{filename}}`
|
||
|
|
||
|
- generate random numbers in range
|
||
|
|
||
|
`shuf -i LO-HI`
|
||
|
|
||
|
- take first n results from output
|
||
|
|
||
|
`shuf -n {{n}} {{filename}}`
|
||
|
|
||
|
- write output to another file
|
||
|
|
||
|
`shuf -o {{another_filename}} {{filename}}`
|