
j
join(1) | join(1) |
NAME
join - relational database operator
SYNOPSIS
join [ options ] ®le1 ®le2
DESCRIPTION
join forms, on the standard output, a join of the two relations speci®ed by the lines of ®le1 and ®le2. If ®le1 or ®le2 is
®le1 and ®le2 must be sorted in increasing collating sequence (see Environment Variables below) on the ®elds on which they are to be joined; normally the ®rst in each line.
The output contains one line for each pair of lines in ®le1 and ®le2 that have identical join ®elds. The output line normally consists of the common ®eld followed by the rest of the line from ®le1, then the rest of the line from ®le2.
The default input ®eld separators are space, tab, or
Some of the below options use the argument n. This argument should be a 1 or a 2 referring to either ®le1 or ®le2, respectively.
Options
Instead of the default output, produce a line only for each unpairable line in ®le_number, where ®le_number is 1 or 2.
EXTERNAL INFLUENCES
Environment Variables
LC_COLLATE determines the collating sequence join expects from input ®les.
LC_CTYPE determines the alternative blank character as an input ®eld separator, and the interpretation of data within ®les as single and/or
If LC_COLLATE or LC_CTYPE is not speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed or is set to the empty string, a default of ``C'' (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, join behaves as if all internationalization variables are set to ``C'' (see environ(5)).
International Code Set Support
Single- and
Section 1−364 | − 1 − |