comm

QNX SDP8.0Utilities ReferenceUtilities

Select or reject lines common to two files (POSIX, toybox)

Syntax:

comm [-123] file1 file2

Runs on:

QNX OS

Options:

-1
Suppress the output column of lines unique to file1.
-2
Suppress the output column of lines unique to file2.
-3
Suppress the output column of lines duplicated in file1 and file2.
file1
The pathname of the first file to be compared. If file1 is -, standard input is used.
file2
The pathname of the second file to be compared. If file2 is -, standard input is used.

Description:

The comm utility reads file1 and file2, which must be ordered in collating sequence, and produces three text columns as output. These three columns are: lines found only in file1, lines found only in file2, and lines found in both files.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: