mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-04 02:55:33 +02:00
shuf: add Chinese translation
This commit is contained in:
parent
08f43344b6
commit
c8388fefb1
1 changed files with 19 additions and 0 deletions
19
pages.zh/osx/shuf.md
Normal file
19
pages.zh/osx/shuf.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# shuf
|
||||
|
||||
> 生成随机排列.
|
||||
|
||||
- 随机化文件中的行顺序并输出结果:
|
||||
|
||||
`shuf {{文件名}}`
|
||||
|
||||
- 只输出结果的前 5 条:
|
||||
|
||||
`shuf -n {{5}} {{文件名}}`
|
||||
|
||||
- 将结果输出写入另一个文件:
|
||||
|
||||
`shuf {{文件名}} -o {{输出_文件名}}`
|
||||
|
||||
- 生成范围(1-10)内的随机数:
|
||||
|
||||
`shuf -i {{1-10}}`
|
Loading…
Add table
Reference in a new issue