>Usage
The comm command is used to compare two sorted files line by line and display differences and similarities. It outputs three columns: lines unique to the first file, lines unique to the second file, and lines common to both files.
>Syntax
>Options
>Examples
Example 1:
-zsh
> comm file1.txt file2.txt
apple (lines only in file1)
kiwi (lines only in file2)
pear
banana (lines common in file1 and file2)
grape
orange
Example 2:
-zsh
> comm -23 file1.txt file2.txt
apple (display lines unique to file1)
orange
Example 3:
-zsh
> comm -12 file1.txt file2.txt
banana (display lines common of both files)
grape