Comm

From DssWiki

Jump to: navigation, search

{{DISPLAYTITLE:{{#if:|:|}}comm}}

The comm command in Unix is a utility 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 diff.

One notable difference between comm and diff is that comm will not try to indicate that a line has "changed" between the two files; lines are either shown in the "from file #1", "from file #2", or "in both" columns. This feature can be especially useful if one wishes two lines to be considered different even if they only have subtle differences.

comm also has options to suppress any of the three columns which is useful for a scripting.

[edit] See also



<noinclude>Template:Unix-stub
Personal tools
efta 468 03-27-08 JOIN OUR TEAM!!