Linux

comm

SafeCompare sorted files

comm -13 <sorted1> <sorted2>

Extracts unique/common lines between sorted lists — perfect for diffing server or ID inventories.

Examples

  • comm -23 all.txt done.txtLines only in the first list

Syntax

comm [-123] <sorted_file1> <sorted_file2>

Before you run it

Read only.

Related commands

  • diffCompare files
  • sortSort / unique
  • uniqCollapse duplicate lines

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store