Scroll to navigation

SHUF(1) 用戶命令 SHUF(1)

名稱

shuf - 生成隨機排列

概述

shuf [選項]... [文件]
shuf -e [選項]... [參數]...
shuf -i LO-HI [選項]...

描述

把輸入行按隨機順序輸出到標準輸出。

如果沒有指定文件,或者指定文件爲“-”,則從標準輸入讀取。

必選參數對長短選項同時適用。

將每個參數視爲輸入行
將 LO 到 HI 的每個數字視爲輸入行
最多輸出指定的行數
將結果輸出到指定文件而非標準輸出
從指定文件獲得隨機字節
輸出行可以重複
以 NUL 作爲行的分隔符,而非換行符
顯示此幫助信息並退出
顯示版本信息並退出

作者

由 Paul Eggert 編寫。

報告錯誤

GNU coreutils 的在線幫助: <https://www.gnu.org/software/coreutils/>
請向 <https://translationproject.org/team/zh_CN.html> 報告翻譯錯誤。

版權

Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

參見

完整文檔請見: <https://www.gnu.org/software/coreutils/shuf>
或者在本地使用: info '(coreutils) shuf invocation'

本頁面中文版由中文 man 手冊頁計劃提供。
中文 man 手冊頁計劃:https://github.com/man-pages-zh/manpages-zh

2020年三月 GNU coreutils 8.32