<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Comm_%28command%29</id>
		<title>Comm (command) - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.christophchamp.com/index.php?action=history&amp;feed=atom&amp;title=Comm_%28command%29"/>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Comm_(command)&amp;action=history"/>
		<updated>2026-04-30T11:59:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.2</generator>

	<entry>
		<id>http://wiki.christophchamp.com/index.php?title=Comm_(command)&amp;diff=2218&amp;oldid=prev</id>
		<title>Christoph: Started article</title>
		<link rel="alternate" type="text/html" href="http://wiki.christophchamp.com/index.php?title=Comm_(command)&amp;diff=2218&amp;oldid=prev"/>
				<updated>2006-05-25T21:58:00Z</updated>
		
		<summary type="html">&lt;p&gt;Started article&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{lowercase|title=comm}}&lt;br /&gt;
&lt;br /&gt;
'''&amp;lt;tt&amp;gt;comm&amp;lt;/tt&amp;gt;''' is a [[:Category:Linux Command Line Tools|command line tool]] that is used to compare two files. It shows common lines in one column and differing lines in separate columns for left and right files. This functionally is similar to &amp;lt;tt&amp;gt;[[Diff (command)|diff]]&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
One notable difference between &amp;lt;tt&amp;gt;comm&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;diff&amp;lt;/tt&amp;gt; is that &amp;lt;tt&amp;gt;comm&amp;lt;/tt&amp;gt; will not try to indicate that a line has &amp;quot;changed&amp;quot; between the two files; lines are either shown in the &amp;quot;from file #1&amp;quot;, &amp;quot;from file #2&amp;quot;, or &amp;quot;in both&amp;quot; columns.  This feature can be especially useful when you wish two lines to be considered different even if they only have subtle differences.  &lt;br /&gt;
&lt;br /&gt;
== Example usage ==&lt;br /&gt;
Let's say you have two files, &amp;lt;tt&amp;gt;foo&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;bar&amp;lt;/tt&amp;gt;, and you would like to know what is unique or the same in these two files.&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;tt&amp;gt;foo&amp;lt;/tt&amp;gt; file has the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pears&lt;br /&gt;
mellons&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;tt&amp;gt;bar&amp;lt;/tt&amp;gt; file has the following lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apples&lt;br /&gt;
oranges&lt;br /&gt;
pears&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find what lines are common in both of these files, type the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;comm -12 foo bar&amp;lt;/pre&amp;gt;&lt;br /&gt;
which will produce:&lt;br /&gt;
&amp;lt;pre&amp;gt;pears&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To find what lines are unique to &amp;lt;tt&amp;gt;foo&amp;lt;/tt&amp;gt;, type the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;comm -23 foo bar&amp;lt;/pre&amp;gt;&lt;br /&gt;
which will produce:&lt;br /&gt;
&amp;lt;pre&amp;gt;mellons&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
*[[Diff (command)|diff]]&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*[http://www.linuxmanpages.com/man1/comm.1.php] The programme's manpage&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Command Line Tools]]&lt;/div&gt;</summary>
		<author><name>Christoph</name></author>	</entry>

	</feed>