Comm Explained

comm
Author:Lee E. McMahon
Developer:AT&T Bell Laboratories, Richard Stallman, David MacKenzie
Programming Language:C
Operating System:Unix, Unix-like, Plan 9, Inferno
Platform:Cross-platform
Genre:Command
License:coreutils

GPLv3+
Plan 9: MIT License

The command in the Unix family of computer operating systems is a utility that is used to compare two files for common and distinct lines. is specified in the POSIX standard. It has been widely available on Unix-like operating systems since the mid to late 1980s.

History

Written by Lee E. McMahon, first appeared in Version 4 Unix.[1]

The version of bundled in GNU coreutils was written by Richard Stallman and David MacKenzie.[2]

Usage

reads two files as input, regarded as lines of text. outputs one file, which contains three columns. The first two columns contain lines unique to the first and second file, respectively. The last column contains lines common to both. This functionally is similar to .

Columns are typically distinguished with the

Notes and References

  1. M. D. . McIlroy . Doug McIlroy . 1987 . A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986 . CSTR . 139 . Bell Labs.
  2. Web site: Comm(1): Compare two sorted files line by line - Linux man page.