osx/*: update page (#7665)

This commit is contained in:
Emily Grace Seville
2022-02-14 03:21:43 -08:00
committed by GitHub
parent b1326296cd
commit 692469016e
78 changed files with 151 additions and 107 deletions

View File

@@ -1,6 +1,7 @@
# shuf
> Generate random permutations.
> More information: <https://www.unix.com/man-page/linux/1/shuf/>.
- Randomize the order of lines in a file and output the result:
@@ -8,12 +9,12 @@
- Only output the first 5 entries of the result:
`shuf -n {{5}} {{filename}}`
`shuf --head-count={{5}} {{filename}}`
- Write output to another file:
`shuf {{filename}} -o {{output_filename}}`
`shuf {{filename}} --output={{output_filename}}`
- Generate random numbers in range 1-10:
`shuf -i {{1-10}}`
`shuf --input-range={{1-10}}`