01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

JOIN ( 1 ) JOIN ( 1 )<br />

NAME<br />

join - relational database operator<br />

SYNOPSIS<br />

join [ options ] filel file2<br />

DESCRIPTION<br />

Join forms, on the standard output, a join of the two relations<br />

specified by the lines of file1 and file2. If file1 is -, the standard<br />

input is used.<br />

File1 and file2 must be sorted in increasing ASCII collating<br />

sequence on the fields on which they are to be joined, normally the<br />

first in each line.<br />

There is one line in the output for each pair of lines in file1 and<br />

file2 that have identical join fields. The output line normally consists<br />

of the common field, then the rest of the line from file1 , then<br />

the rest of the line from file2.<br />

Fields are normally separated by blank, tab or new-line. In this<br />

case, multiple separators count as one, and leading separators are<br />

discarded.<br />

These options are recognized:<br />

-an In addition to the normal output, produce a line for<br />

each unpairable line in file n, where n is 1 or 2.<br />

-e s Replace empty output fields by string s.<br />

-j n m Join on the m th field of file n. If n is missing, use the<br />

m th field in each file.<br />

-o list Each output line comprises the fields specified in list,<br />

each element of which has the form n.m, where n is a<br />

file number and m is a field number.<br />

-tc Use character c as a separator (tab character). Every<br />

appearance of c in a line is significant.<br />

SEE ALSO<br />

awk( l), comm(l), sort(l).<br />

BUGS<br />

With default field separation, the collating sequence is that of<br />

sort -b; with -t, the sequence is that of a plain sort.<br />

The conventions of join, sort, comm, uniq and awk(l) are wildly<br />

incongruous.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!