mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-09-10 14:14:17 +02:00
shuf: suggestions
This commit is contained in:
parent
1089ebb837
commit
53750372c5
1 changed files with 6 additions and 6 deletions
|
@ -2,18 +2,18 @@
|
||||||
|
|
||||||
> generate random permutations
|
> generate random permutations
|
||||||
|
|
||||||
- randomize strings position in file
|
- randomize the order of lines in a file and output the result
|
||||||
|
|
||||||
`shuf {{filename}}`
|
`shuf {{filename}}`
|
||||||
|
|
||||||
- generate random numbers in range
|
- only output the first n entries of the result
|
||||||
|
|
||||||
`shuf -i {{low}}-{{high}}`
|
|
||||||
|
|
||||||
- take first n results from output
|
|
||||||
|
|
||||||
`shuf -n {{n}} {{filename}}`
|
`shuf -n {{n}} {{filename}}`
|
||||||
|
|
||||||
- write output to another file
|
- write output to another file
|
||||||
|
|
||||||
`shuf -o {{another_filename}} {{filename}}`
|
`shuf -o {{another_filename}} {{filename}}`
|
||||||
|
|
||||||
|
- generate random numbers in range
|
||||||
|
|
||||||
|
`shuf -i {{low}}-{{high}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue