rust-comm(1)

rust-comm1

Compare two sorted files line by line. when file1 or file2 (not both) is -, read standard input. with no options, produce three-column output. column one contains lines unique to file1, column two contains lines unique to file2, and column three contains lines common to both files.

Usage

comm [-1] [-2] [-3] [--output-delimiter] [{-z | --zero-terminated}] [--total] [--check-order] [--nocheck-order] [{-h | --help}] [{-V | --version}] <FILE1> <FILE2>

Overview

Compare two sorted files line by line.

When FILE1 or FILE2 (not both) is -, read standard input.

With no options, produce three-column output. Column one contains lines unique to FILE1, column two contains lines unique to FILE2, and column three contains lines common to both files.

Options

-1

suppress column 1 (lines unique to FILE1)

-2

suppress column 2 (lines unique to FILE2)

-3

suppress column 3 (lines that appear in both files)

--output-delimiter=STR

separate columns with STR

-z, --zero-terminated

line delimiter is NUL, not newline

--total

output a summary

--check-order

check that the input is correctly sorted, even if all input lines are pairable

--nocheck-order

do not check that the input is correctly sorted

-h, --help

Print help

-V, --version

Print version

<FILE1>
<FILE2>

Version

v0.0.30

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

-V since Debian 13 (Trixie); -h since Debian 13 (Trixie).

From rust-coreutils 0.0.30-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.