Print this page
13507 some man pages need update following 13405
6308 some man pages are obsolete after moving to ksh builtins
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man1/comm.1.man.txt
+++ new/usr/src/man/man1/comm.1.man.txt
1 1 COMM(1) User Commands COMM(1)
2 2
3 -
4 -
5 3 NAME
6 - comm - select or reject lines common to two files
4 + comm - select or reject lines common to two files
7 5
8 6 SYNOPSIS
9 - comm [-123] file1 file2
7 + comm [-123] file1 file2
10 8
11 -
12 9 DESCRIPTION
13 - The comm utility reads file1 and file2, which must be ordered in the
14 - current collating sequence, and produces three text columns as output:
15 - lines only in file1; lines only in file2; and lines in both files.
10 + The comm utility reads file1 and file2, which must be ordered in the
11 + current collating sequence, and produces three text columns as output:
16 12
13 + o lines only in file1;
17 14
18 - If the input files were ordered according to the collating sequence of
19 - the current locale, the lines written will be in the collating sequence
20 - of the original lines. If not, the results are unspecified.
15 + o lines only in file2;
21 16
22 -OPTIONS
23 - The following options are supported:
17 + o lines in both files.
24 18
25 - -1
26 - Suppresses the output column of lines unique to file1.
19 + If the input files were ordered according to the collating sequence of
20 + the current locale, the lines written will be in the collating sequence
21 + of the original lines. If not, the results are unspecified.
27 22
23 + If either file1 or file2 is -, comm uses standard input starting at the
24 + current location.
28 25
29 - -2
30 - Suppresses the output column of lines unique to file2.
26 +OPTIONS
27 + The following options are supported:
31 28
29 + -1 Suppresses the output column of lines unique to file1.
32 30
33 - -3
34 - Suppresses the output column of lines duplicated in file1 and
35 - file2.
31 + -2 Suppresses the output column of lines unique to file2.
36 32
33 + -3 Suppresses the output column of lines common to both file1
34 + and file2.
37 35
38 36 OPERANDS
39 - The following operands are supported:
37 + The following operands are supported:
40 38
41 - file1
42 - A path name of the first file to be compared. If file1 is -,
43 - the standard input is used.
39 + file1 A path name of the first file to be compared. If file1 is
40 + -, the standard input is used.
44 41
42 + file2 A path name of the second file to be compared. If file1 is
43 + -, the standard input is used.
45 44
46 - file2
47 - A path name of the second file to be compared. If file2 is -,
48 - the standard input is used.
45 +EXIT STATUS
46 + The following exit values are returned:
49 47
48 + 0 All input files were successfully output as specified.
50 49
51 -USAGE
52 - See largefile(5) for the description of the behavior of comm when
53 - encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
50 + >0 An error occurred.
54 51
55 52 EXAMPLES
56 - Example 1 Printing a list of utilities specified by files
53 + Example 1 Printing a list of utilities specified by files
57 54
55 + If file1, file2, and file3 each contain a sorted list of utilities,
56 + the command
58 57
59 - If file1, file2, and file3 each contain a sorted list of utilities, the
60 - command
58 + $ comm -23 file1 file2 | comm -23 - file3
61 59
60 + prints a list of utilities in file1 not specified by either of the
61 + other files.
62 62
63 - example% comm -23 file1 file2 | comm -23 - file3
63 + The command:
64 64
65 + $ comm -12 file1 file2 | comm -12 - file3
65 66
67 + prints a list of utilities specified by all three files; and the
68 + command:
66 69
70 + $ comm -12 file2 file3 | comm -23 -file1
67 71
68 - prints a list of utilities in file1 not specified by either of the
69 - other files. The entry:
72 + prints a list of utilities specified by both file2 and file3, but not
73 + specified in file1.
70 74
71 -
72 - example% comm -12 file1 file2 | comm -12 - file3
73 -
74 -
75 -
76 -
77 - prints a list of utilities specified by all three files. And the entry:
78 -
79 -
80 - example% comm -12 file2 file3 | comm -23 -file1
81 -
82 -
83 -
84 -
85 - prints a list of utilities specified by both file2 and file3, but not
86 - specified in file1.
87 -
88 -
89 75 ENVIRONMENT VARIABLES
90 - See environ(5) for descriptions of the following environment variables
91 - that affect the execution of comm: LANG, LC_ALL, LC_COLLATE, LC_CTYPE,
92 - LC_MESSAGES, and NLSPATH.
76 + See environ(5) for descriptions of the following environment variables
77 + that affect the execution of comm: LANG, LC_ALL, LC_COLLATE, LC_CTYPE,
78 + LC_MESSAGES, LC_NUMERIC, and NLSPATH.
93 79
94 -EXIT STATUS
95 - The following exit values are returned:
80 +INTERFACE STABILITY
81 + The command line interface of comm is Committed. The output of comm is
82 + Committed.
96 83
97 - 0
98 - All input files were successfully output as specified.
99 -
100 -
101 - >0
102 - An error occurred.
103 -
104 -
105 -ATTRIBUTES
106 - See attributes(5) for descriptions of the following attributes:
107 -
108 -
109 -
110 -
111 - +--------------------+-----------------+
112 - | ATTRIBUTE TYPE | ATTRIBUTE VALUE |
113 - +--------------------+-----------------+
114 - |CSI | enabled |
115 - +--------------------+-----------------+
116 - |Interface Stability | Standard |
117 - +--------------------+-----------------+
118 -
119 84 SEE ALSO
120 - cmp(1), diff(1), sort(1), uniq(1), attributes(5), environ(5),
121 - largefile(5), standards(5)
85 + cmp(1), diff(1), sort(1), uniq(1), attributes(5), environ(5),
86 + largefile(5), standards(5)
122 87
123 -
124 -
125 - March 3, 2004 COMM(1)
88 +illumos February 9, 2021 illumos
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX