Files
oam/knowledge base/cmp.md

871 B

cmp

Compares two files byte by byte.

Prints the line and the character number where the two files diverge.

Table of contents

  1. TL;DR
  2. Further readings
  3. Sources

TL;DR

# Print only lines present in both file1 and file2.
cmp 'path/to/file1' 'path/to/file2'

Further readings

Sources

All the references in the further readings section, plus the following: