comm file1.txt file2.txt

Category: Text Processing

comm file1.txt file2.txt

Compare two sorted files line by line (3 columns)

Compares two sorted files and shows three columns: lines only in file1, lines only in file2, and lines in both.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.