.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.48.5. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH COMM 1 2022年9月 "GNU coreutils 9.1" 使用者命令 .SH 名稱 comm \- 按行比較兩個已排序的檔案 .SH 概述 \fBcomm\fP [\fI\,選項\/\fP]... \fI\,檔案1 檔案2\/\fP .SH 描述 .\" Add any additional description here .PP 逐行比較已排序的檔案檔案1 和檔案2。 .PP 當檔案1 或者檔案2 中有且只有一個是“\-”時,從標準輸入讀取。 .PP 如果不附帶選項,程式會生成三列輸出。第一列包含檔案1 特有的行,第二列包含 檔案2 特有的行,而第三列包含兩個檔案共有的行。 .TP \fB\-1\fP 不輸出檔案1 特有的行 .TP \fB\-2\fP 不輸出檔案2 特有的行 .TP \fB\-3\fP 不輸出兩個檔案共有的行 .TP \fB\-\-check\-order\fP 檢查輸入是否被正確排序,即使所有輸入行均成對 .TP \fB\-\-nocheck\-order\fP 不檢查輸入是否被正確排序 .TP \fB\-\-output\-delimiter\fP=\fI\,STR\/\fP 按照指定的 STR 分隔各列 .TP \fB\-\-total\fP 輸出一份摘要資訊 .TP \fB\-z\fP, \fB\-\-zero\-terminated\fP 以 NUL 字元而非換行符作為行尾分隔符 .TP \fB\-\-help\fP 顯示此幫助資訊並退出 .TP \fB\-\-version\fP 顯示版本資訊並退出 .PP 注意,比較操作遵從“LC_COLLATE”所指定的規則 .SH 範例 .TP comm \-12 檔案1 檔案2 只打印在檔案1 和檔案2 中都有的行。 .TP comm \-3 檔案1 檔案2 列印在檔案1 中有,而檔案2 中沒有的行。反之亦然。 .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 參見 \fBjoin\fP(1), \fBuniq\fP(1) .PP .br 完整文件請見: .br 或者在本地使用: info \(aq(coreutils) comm invocation\(aq .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR