Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (g - j) join(1)
and numbers contains:
555-0256
555-1234
555-5555
555-7358
then sort ... | join ... displays:
555-0256 Hrarii
555-1234 Eisner
555-1234 Wozni
555-7358 Janatha
Each telephone number in numbers is listed with the name listed in phonedir for that
telephone number. Note that join lists all the matches for a given field. In this case, join
lists both Eisner and Wozni as having the telephone number 555-1234. The telephone
number 555-5555 is not listed, because it does not appear in phonedir.
EXIT VALUES
The join command returns the following values:
0 (zero) The command completed successfully.
>0 An error occurred.
RELATED INFORMATION
Commands: awk(1), cmp(1), comm(1), cut(1), diff(1), grep(1), paste(1), sort(1), uniq(1).
Files: locale(4).
STANDARDS CONFORMANCE
This command conforms to the XPG4 Version 2 specification. The obsolescent version of the
command does not conform to the XPG4 Version 2 specification, and its -j flag should be con-
sidered a temporary extension to the XPG4 Version 2 specification.
527188-007 Hewlett-Packard Company 4−65