.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5.
.\"*******************************************************************
.\"
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
.TH UNIQ 1 2022年9月 "GNU coreutils 9.1" 使用者命令
.SH 名稱
uniq \- 報告或省略重複行
.SH 概述
\fBuniq\fP [\fI\,選項\/\fP]... [\fI\,輸入 \/\fP[\fI\,輸出\/\fP]]
.SH 描述
.\" Add any additional description here
.PP
從輸入檔案(或標準輸入)篩選一組相鄰的匹配行,寫入到輸出檔案(或標準輸出)。
.PP
如沒有指定選項,則只保留一組匹配行中的第一行。
.PP
必選引數對長短選項同時適用。
.TP
\fB\-c\fP, \fB\-\-count\fP
每行前附上重複出現的次數作為字首
.TP
\fB\-d\fP, \fB\-\-repeated\fP
僅顯示重複行,每組一個
.TP
\fB\-D\fP
顯示所有重複的行
.TP
\fB\-D\fP, \fB\-\-all\-repeated\fP[=\fI\,METHOD\/\fP]
類似 \fB\-D\fP,但是允許使用空行對各個組進行分隔;METHOD={none(default),prepend,separate}
.TP
\fB\-f\fP, \fB\-\-skip\-fields\fP=\fI\,N\/\fP
比較時跳過前 N 個域
.TP
\fB\-\-group\fP[=\fI\,METHOD\/\fP]
顯示所有行,用一個空行分隔每一組 METHOD={separate(default), prepend, append, both}
.TP
\fB\-i\fP, \fB\-\-ignore\-case\fP
比較時忽略大小寫
.TP
\fB\-s\fP, \fB\-\-skip\-chars\fP=\fI\,N\/\fP
比較時跳過前 N 個字元
.TP
\fB\-u\fP, \fB\-\-unique\fP
只顯示不重複的行
.TP
\fB\-z\fP, \fB\-\-zero\-terminated\fP
以 NUL 作為行的分隔符,而非換行符
.TP
\fB\-w\fP, \fB\-\-check\-chars\fP=\fI\,N\/\fP
對每行第 N 個字元以後的內容不作比較
.TP
\fB\-\-help\fP
顯示此幫助資訊並退出
.TP
\fB\-\-version\fP
顯示版本資訊並退出
.PP
域指一個由空字元(通常是空格和/或製表符)和緊隨的非空字元組成的序列。同時使用跳過域和跳過字元選項時,先跳過域再跳過字元。
.PP
提示:"uniq" 不會檢查重複的行,除非它們是相鄰的行。您也許需要事先對輸入排序,或使用 "sort \-u" 而非 "uniq"。
.SH 作者
由 Richard M. Stallman 和 David MacKenzie 編寫。
.SH 報告錯誤
GNU coreutils 的線上幫助:
.br
請向 報告翻譯錯誤。
.SH 版權
Copyright \(co 2022 Free Software Foundation, Inc. License GPLv3+: GNU GPL
version 3 or later .
.br
This is free software: you are free to change and redistribute it. There is
NO WARRANTY, to the extent permitted by law.
.SH 參見
\fBcomm\fP(1), \fBjoin\fP(1), \fBsort\fP(1)
.PP
.br
完整文件請見:
.br
或者在本地使用: info \(aq(coreutils) uniq invocation\(aq
.SH "跋"
.br
本頁面中文版由中文 man 手冊頁計劃提供。
.br
中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR