IPB
>  Man Pages > Unix > Solaris 10 11/06 > Section 1 > comm man page

comm man page

Section 1 - Solaris 10 11/06 Man Pages

Other operating system man pages available here


Advanced Search

Hopefully, this page is exactly what you are looking for, but if not, you can always find further assistance on Unix/Linux Forum!





User Commands                                             comm(1)



NAME
     comm - select or reject lines common to two files

SYNOPSIS
     comm [-123] file1 file2

DESCRIPTION
     The comm utility  reads  file1  and  file2,  which  must  be
     ordered  in  the  current  collating  sequence, and produces
     three text columns as output: lines  only  in  file1;  lines
     only in file2; and lines in both files.

     If the input files were ordered according to  the  collating
     sequence of the current locale, the lines written will be in
     the collating sequence of the original lines.  If  not,  the
     results are unspecified.

OPTIONS
     The following options are supported:

     -1       Suppresses the output column  of  lines  unique  to
              file1.



     -2       Suppresses the output column  of  lines  unique  to
              file2.



     -3       Suppresses the output column of lines duplicated in
              file1 and file2.



OPERANDS
     The following operands are supported:

     file1    A path name of the first file to  be  compared.  If
              file1 is -, the standard input is used.



     file2    A path name of the second file to be  compared.  If
              file2 is -, the standard input is used.



USAGE
     See largefile(5) for the description of the behavior of comm
     when encountering files greater than or equal to 2 Gbyte ( 2
    **31 bytes).



SunOS 5.10           Last change: 3 Mar 2004                    1






User Commands                                             comm(1)



EXAMPLES
     Example 1: Printing a list of utilities specified by files

     If file1, file2, and file3 each contain  a  sorted  list  of
     utilities, the command

     example% comm -23 file1 file2  | comm -23 - file3

     prints a list of utilities in file1 not specified by  either
     of the other files. The entry:

     example% comm -12 file1 file2 | comm -12 - file3

     prints a list of utilities specified by all three files. And
     the entry:

     example% comm -12  file2 file3 | comm -23 -file1

     prints a list of  utilities  specified  by  both  file2  and
     file3, but not specified in file1.

ENVIRONMENT VARIABLES
     See environ(5) for descriptions of the following environment
     variables  that  affect the execution of comm: LANG, LC_ALL,
     LC_COLLATE, LC_CTYPE, LC_MESSAGES, and NLSPATH.

EXIT STATUS
     The following exit values are returned:

     0        All input files were successfully output as  speci-
              fied.



     >0       An error occurred.



ATTRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:

     ____________________________________________________________
    |       ATTRIBUTE TYPE        |       ATTRIBUTE VALUE       |
    |_____________________________|_____________________________|
    | Availability                | SUNWesu                     |
    |_____________________________|_____________________________|
    | CSI                         | enabled                     |
    |_____________________________|_____________________________|
    | Interface Stability         | Standard                    |
    |_____________________________|_____________________________|




SunOS 5.10           Last change: 3 Mar 2004                    2






User Commands                                             comm(1)



SEE ALSO
     cmp(1),   diff(1),    sort(1),    uniq(1),    attributes(5),
     environ(5), largefile(5), standards(5)




















































SunOS 5.10           Last change: 3 Mar 2004                    3





Man(1) output converted with man2html and wrapped by fishsponge

This page was generated on Wed Sep 12 11:24:31 GMT 2007

Your favourite pages:

No pages logged yet.
Trying to save cookie...

Top 10 most popular pages:

CPAN man page (4329 hits)
(Suse Linux 10.1)

ssh man page (4183 hits)
(Suse Linux 10.1)

adv_cap_autoneg man page (4089 hits)
(Solaris 10 11_06)

sqlite3 man page (4012 hits)
(openSUSE 10.2)

svn man page (3236 hits)
(FreeBSD 6.2)

startproc man page (1903 hits)
(Suse Linux 10.1)

pprosetup man page (1664 hits)
(Solaris 10 11_06)

netcat man page (1603 hits)
(Suse Linux 10.1)

signal man page (1592 hits)
(Suse Linux 10.1)

ssh-socks5-proxy-connect man page (1549 hits)
(Solaris 10 11_06)

Useful Links

Go Back

Visitor Statistics


Valid XHTML 1.0 Transitional     Valid CSS!

Partners: Cambridge Plus :: Pyrenees Ski Holidays :: PIC Application Design :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum