Files
tldr/pages.zh/osx/shuf.md
Sebastiaan Speck 3cdca255a4 shuf: add Dutch translation and align pages (#13044)
* shuf: add Dutch translation and align pages

* Update shuf.md

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

* Update shuf.md

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>

---------

Co-authored-by: Jack Lin <blueskyson1401@gmail.com>
2024-06-18 22:16:06 +02:00

21 lines
444 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# shuf
> 生成随机排列。
> 更多信息:<https://keith.github.io/xcode-man-pages/shuf.1.html>.
- 随机化文件中的行顺序并输出结果:
`shuf {{文件名}}`
- 只输出结果的前 5 条:
`shuf --head-count=5 {{路径/到/文件}}`
- 将结果输出写入另一个文件:
`shuf {{路径/到/输入文件}} --output={{路径/到/输出文件}}`
- 生成范围1-10内的随机数
`shuf --input-range=1-10`