comm
Verified for current stable LTS
Comm Command: Print Only Common Lines
Use for print only common lines with Comm. Exact CLI syntax to print only common lines using Comm.
When to use this: Use for print only common lines with Comm.
Command Syntax
comm -12 <file1> <file2> comm -12 <file1> <file2> Command Breakdown
-12- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to print only common lines using Comm.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Comm Command: Get Lines Only Found In First File And Save To Third File
comm -23 <file1> <file2> > <file1_only> Comm Command: Print Lines Unique To Second File Without Sorting comm -13 <(sort <file1>) <(sort <file2>) Comm Command: Print Only Common Lines Between Two Files comm -12 <file1> <file2> Comm Command: Print Only Common Lines Using Stdin For One File cat <file1> | comm -12 - <file2> Comm Command: Produce Three Columns Of Lines Only In First, Second, And Common comm <file1> <file2>