mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-30 16:55:38 +02:00
linux: shuf
This commit is contained in:
parent
786e90e864
commit
f4946b78d2
1 changed files with 19 additions and 0 deletions
19
pages/linux/shuf.md
Normal file
19
pages/linux/shuf.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# 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}}`
|
Loading…
Add table
Reference in a new issue