comm(1)

πŸ“¦
version 0.7.0 Β· 3 versions
, in epel 10, fedora 43, fedora 44

πŸ¦‹ comm(1) β€” bestie edition πŸ¦‹

okay so this is comm, living in the General Commands Manual, and she is genuinely one of the most underrated little icons in your toolkit. She compares two sorted files line by line, and honestly? She ate. πŸ’…


✨ NAME ✨

comm β€” Compare two sorted files line by line.

When FILE1 or FILE2 (not both) is -, read standard input. πŸ‘€

With no options, produce three-column output. Column one contains lines unique to FILE1, column two contains lines unique to FILE2, and column three contains lines common to both files.


✨ SYNOPSIS ✨

comm [-1 ] [-2 ] [-3 ] [--output-delimiter] [-z|--zero-terminated]
[--total] [--check-order] [--nocheck-order] [-h|--help] [-V|--version]
<FILE1> <FILE2>

✨ DESCRIPTION ✨

Compare two sorted files line by line. That's the whole vibe. 🌸

When FILE1 or FILE2 (not both) is -, read standard input. Yes bestie, one of them can be a - and it'll slurp from stdin β€” just not both at once, that's the rule. 🫢

With no options, produce three-column output. Column one contains lines unique to FILE1, column two contains lines unique to FILE2, and column three contains lines common to both files. Three columns, three moods, one command. πŸ‘‘


✨ OPTIONS ✨

  • -1 β€” suppress column 1 (lines unique to FILE1). bye bye column one 🫑
  • -2 β€” suppress column 2 (lines unique to FILE2). column two, you're on mute πŸ”‡
  • -3 β€” suppress column 3 (lines that appear in both files). sorry to the shared lines, you're not invited today πŸ’€
  • --output-delimiter <STR> β€” separate columns with STR. You pick the little guy that sits between the columns. Cute, customizable, iconic. ✨
  • -z, --zero-terminated β€” line delimiter is NUL, not newline. For when newlines are simply not the moment. 🧚
  • --total β€” output a summary. Receipts. 🧾
  • --check-order β€” check that the input is correctly sorted, even if all input lines are pairable. She's doing a vibe check on your sorting, no matter what. πŸ”
  • --nocheck-order β€” do not check that the input is correctly sorted. Living dangerously, love that for you. πŸ™ˆ
  • -h, --help β€” Print help. When you're lost, she's got you. πŸ’–
  • -V, --version β€” Print version. The classic. ⭐
  • <FILE1> β€” the first file, bestie.
  • <FILE2> β€” the second file, also bestie.
⚠️ real talk: both inputs need to be sorted. That's not a suggestion, that's the whole foundation of how she works. If the order is off, the output is off. Use --check-order if you want her to call it out, or --nocheck-order if you'd rather she mind her business. πŸ’€

✨ VERSION ✨

v(uutils coreutils) 0.7.0


and that's the whole page, bestie!! this was comm (uutils coreutils) 0.7.0 β€” go sort your files and slay πŸ’…πŸŒˆ

πŸ“¦ where this page comes from
  • epel 10: rust-coreutils-devel 0.7.0-10.el10_3 Β· MIT
  • epel 10: uutils-coreutils 0.7.0-10.el10_3 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 43: rust-coreutils-devel 0.7.0-12.fc43 Β· MIT
  • fedora 43: uutils-coreutils 0.7.0-12.fc43 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • fedora 44: rust-coreutils-devel 0.7.0-4.fc44 Β· MIT
  • fedora 44: uutils-coreutils 0.7.0-4.fc44 Β· (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND Apache-2.0 AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception) AND (Apache-2.0 OR GPL-2.0-only) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND BSD-3-Clause AND CC0-1.0 AND ISC AND MIT AND (MIT OR Zlib OR Apache-2.0) AND (MIT-0 OR Apache-2.0) AND Unicode-3.0 AND (Unlicense OR MIT)
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms