comm(1)
π¦ 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 toFILE1). bye bye column one π«‘-2β suppress column 2 (lines unique toFILE2). 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 isNUL, 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-orderif you want her to call it out, or--nocheck-orderif 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