JAEN

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 on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store