Команда comm

Select or reject lines common to two files.

Синтаксис

comm [-1] [-2] [-3 ] file1 file2

-1Suppress the output column of lines unique to file1.
-2Suppress the output column of lines unique to file2.
-3Suppress the output column of lines duplicated in file1 and file2.
file1Name of the first file to compare.
file2Name of the second file to compare.

Примеры

comm myfile1.txt myfile2.txt

The above example would compare the two files myfile1.txt and myfile2.txt.

Обратно к списку команд