Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (c) comm(1)
2. To display any one or two of the three output columns, include the appropriate ags to
suppress the columns you do not want. For example, the following command displays
lines that appear only in le1 and only in le2:
comm -3 le1 le2
Anaheim
Atlanta
Baltimore
Boston
Cincinnati
Cleveland
Dallas
Denver
Detroit
Houston
Kansas City
Los Angeles
Miami
Milwaukee
Minneapolis
Montreal
Oakland
Philadelphia
Pittsburgh
San Diego
San Francisco
Seattle
St. Louis
Toronto
3. The following command displays lines that appear only in le2:
comm -13 le1 le2
Atlanta
Cincinnati
Denver
Houston
Los Angeles
Miami
Montreal
Philadelphia
Pittsburgh
San Diego
San Francisco
St. Louis
4. The following command displays only those lines that appear in both le1 and le2:
comm -12 le1 le2
Chicago
New York
527188-007 Hewlett-Packard Company 265