shuf

生成随机排列。 更多信息:https://keith.github.io/xcode-man-pages/shuf.1.html.

shuf {{文件名}}

shuf --head-count=5 {{路径/到/文件}}

shuf {{路径/到/输入文件}} --output {{路径/到/输出文件}}

shuf --input-range=1-10