This website requires JavaScript.
Explore
Help
Sign In
ctome
/
tldr
mirror of
https://github.com/CrimsonTome/tldr.git
Watch
1
Star
0
Fork
You've already forked tldr
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
ba6143ab75
tldr
/
pages.zh
/
osx
/
shuf.md
312 B
Raw
Blame
History
shuf
生成随机排列.
随机化文件中的行顺序并输出结果:
shuf {{文件名}}
只输出结果的前 5 条:
shuf -n {{5}} {{文件名}}
将结果输出写入另一个文件:
shuf {{文件名}} -o {{输出_文件名}}
生成范围 (1-10) 内的随机数:
shuf -i {{1-10}}