UNIQ(1) | 使用者命令 | UNIQ(1) |
uniq - 報告或省略重複行
uniq [選項]... [輸入 [輸出]]
從輸入檔案(或標準輸入)篩選一組相鄰的匹配行,寫入到輸出檔案(或標準輸出)。
如沒有指定選項,則只保留一組匹配行中的第一行。
必選引數對長短選項同時適用。
域指一個由空字元(通常是空格和/或製表符)和緊隨的非空字元組成的序列。同時使用跳過域和跳過字元選項時,先跳過域再跳過字元。
提示:"uniq" 不會檢查重複的行,除非它們是相鄰的行。您也許需要事先對輸入排序,或使用 "sort -u" 而非 "uniq"。
由 Richard M. Stallman 和 David MacKenzie 編寫。
GNU coreutils 的線上幫助:
<https://www.gnu.org/software/coreutils/>
請向 <https://translationproject.org/team/zh_CN.html>
報告翻譯錯誤。
Copyright © 2022 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.
comm(1), join(1), sort(1)
完整文件請見:
<https://www.gnu.org/software/coreutils/uniq>
或者在本地使用: info
'(coreutils) uniq invocation'
本頁面中文版由中文
man 手冊頁計劃提供。
中文 man
手冊頁計劃:https://github.com/man-pages-zh/manpages-zh
2022年9月 | GNU coreutils 9.1 |