74 lines
1.4 KiB
HTML
74 lines
1.4 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>comm(1)</TITLE>
|
|
</HEAD>
|
|
<BODY>
|
|
<H1>comm(1)</H1>
|
|
<HR>
|
|
<PRE>
|
|
|
|
</PRE>
|
|
<H2>NAME</H2><PRE>
|
|
comm - print lines common to two sorted files
|
|
|
|
|
|
</PRE>
|
|
<H2>SYNOPSIS</H2><PRE>
|
|
<STRONG>comm</STRONG> [<STRONG>-123</STRONG>] <EM>file1</EM> <EM>file2</EM>
|
|
|
|
|
|
</PRE>
|
|
<H2>OPTIONS</H2><PRE>
|
|
|
|
<STRONG>-1</STRONG> Suppress column 1 (lines present only in <EM>file1</EM>)
|
|
|
|
<STRONG>-2</STRONG> Suppress column 2 (lines present only in <EM>file2</EM>)
|
|
|
|
<STRONG>-3</STRONG> Suppress column 3 (lines present in both files)
|
|
|
|
|
|
</PRE>
|
|
<H2>EXAMPLES</H2><PRE>
|
|
|
|
<STRONG>comm</STRONG> <STRONG>file1</STRONG> <STRONG>file2</STRONG> # Print all three columns
|
|
|
|
<STRONG>comm</STRONG> <STRONG>-12</STRONG> <STRONG>file1</STRONG> <STRONG>file2</STRONG>
|
|
# Print only lines common to both files
|
|
|
|
|
|
</PRE>
|
|
<H2>DESCRIPTION</H2><PRE>
|
|
|
|
Two sorted files are read and compared. A three column listing is
|
|
produced. Files only in <EM>file1</EM> are in column 1; files only in <EM>file2</EM> are
|
|
in column 2; files common to both files are in column 3. The file name -
|
|
means <EM>stdin</EM>.
|
|
|
|
|
|
</PRE>
|
|
<H2>SEE ALSO</H2><PRE>
|
|
<STRONG><A HREF="../man1/cmp.1.html">cmp(1)</A></STRONG>, <STRONG><A HREF="../man1/diff.1.html">diff(1)</A></STRONG>, <STRONG><A HREF="../man1/sort.1.html">sort(1)</A></STRONG>.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</PRE>
|
|
</BODY>
|
|
</HTML>
|