man-pages/man1/comm.1.html
2021-03-31 01:06:50 +01:00

122 lines
3.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of COMM</TITLE>
</HEAD><BODY>
<H1>COMM</H1>
Section: User Commands (1)<BR>Updated: September 2019<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
comm - compare two sorted files line by line
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>comm</B>
[<I>,OPTION/</I>]... <I>,FILE1 FILE2/</I>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
Compare sorted files FILE1 and FILE2 line by line.
<P>
When FILE1 or FILE2 (not both) is -, read standard input.
<P>
With no options, produce three-column output. Column one contains
lines unique to FILE1, column two contains lines unique to FILE2,
and column three contains lines common to both files.
<DL COMPACT>
<DT id="1"><B>-1</B><DD>
suppress column 1 (lines unique to FILE1)
<DT id="2"><B>-2</B><DD>
suppress column 2 (lines unique to FILE2)
<DT id="3"><B>-3</B><DD>
suppress column 3 (lines that appear in both files)
<DT id="4"><B>--check-order</B><DD>
check that the input is correctly sorted, even
if all input lines are pairable
<DT id="5"><B>--nocheck-order</B><DD>
do not check that the input is correctly sorted
<DT id="6"><B>--output-delimiter</B>=<I>,STR/</I><DD>
separate columns with STR
<DT id="7"><B>--total</B><DD>
output a summary
<DT id="8"><B>-z</B>, <B>--zero-terminated</B><DD>
line delimiter is NUL, not newline
<DT id="9"><B>--help</B><DD>
display this help and exit
<DT id="10"><B>--version</B><DD>
output version information and exit
</DL>
<P>
Note, comparisons honor the rules specified by 'LC_COLLATE'.
<A NAME="lbAE">&nbsp;</A>
<H2>EXAMPLES</H2>
<DL COMPACT>
<DT id="11">comm -12 file1 file2<DD>
Print only lines present in both file1 and file2.
<DT id="12">comm -3 file1 file2<DD>
Print lines in file1 not in file2, and vice versa.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>AUTHOR</H2>
Written by Richard M. Stallman and David MacKenzie.
<A NAME="lbAG">&nbsp;</A>
<H2>REPORTING BUGS</H2>
GNU coreutils online help: &lt;<A HREF="https://www.gnu.org/software/coreutils/">https://www.gnu.org/software/coreutils/</A>&gt;
<BR>
Report comm translation bugs to &lt;<A HREF="https://translationproject.org/team/">https://translationproject.org/team/</A>&gt;
<A NAME="lbAH">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright &#169; 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>&gt;.
<BR>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?1+join">join</A>(1), <A HREF="/cgi-bin/man/man2html?1+uniq">uniq</A>(1)
<P>
<BR>
Full documentation at: &lt;<A HREF="https://www.gnu.org/software/coreutils/comm">https://www.gnu.org/software/coreutils/comm</A>&gt;
<BR>
or available locally via: info '(coreutils) comm invocation'
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="13"><A HREF="#lbAB">NAME</A><DD>
<DT id="14"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="15"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="16"><A HREF="#lbAE">EXAMPLES</A><DD>
<DT id="17"><A HREF="#lbAF">AUTHOR</A><DD>
<DT id="18"><A HREF="#lbAG">REPORTING BUGS</A><DD>
<DT id="19"><A HREF="#lbAH">COPYRIGHT</A><DD>
<DT id="20"><A HREF="#lbAI">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:09 GMT, March 31, 2021
</BODY>
</HTML>