Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ comm(1) — NEWS-os 4.2.1R

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

cmp(1)

diff(1)

uniq(1)

COMM(1)  —  NEWS-OS Programmer’s Manual

名称

comm − 2 つのソート済みのファイルに共通な行を選択または削除する

形式

comm [ −123 ] file1 file2

解説

comm は、 文字コード順にソートされている file1 と file2 を読み取り、 file1 だけにある行、 file2 だけにある行、 および両方にある行の 3 つの欄からなる出力を行います。 ファイル名 − は、標準入力を意味します。

フラグ 1、2、3 は、対応する欄の表示を抑制します。 したがって、 comm −12 は、 2 つのファイルに共通な行だけを表示します。 comm −23 は、 第 1 のファイルにはあるが第 2 のファイルにはない行だけを表示します。 また、 comm −123 は、何も表示しません。

関連事項

cmp(1), diff(1), uniq(1)

NEWS-OSRelease 4.2.1R

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026