1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00

shuf: expand short options to long ones (#6001)

This commit is contained in:
anakimluke 2021-05-20 16:07:38 -03:00 committed by GitHub
parent 33b5fcd7bd
commit 23b9d8fe69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,12 +9,12 @@
- Only output the first 5 entries of the result:
`shuf -n {{5}} {{filename}}`
`shuf --head-count={{5}} {{filename}}`
- Write the output to another file:
`shuf {{filename}} -o {{output_filename}}`
`shuf {{filename}} --output={{output_filename}}`
- Generate 3 random numbers in the range 1-10 (inclusive):
`shuf -n {{3}} -i {{1-10}} -r`
`shuf --head-count={{3}} --input-range={{1-10}} --repeat`