1JOIN(1)                          User Commands                         JOIN(1)
2
3
4

NAME

6       join - join lines of two files on a common field
7

SYNOPSIS

9       join [OPTION]... FILE1 FILE2
10

DESCRIPTION

12       For  each  pair of input lines with identical join fields, write a line
13       to standard output.  The default join field is the first, delimited  by
14       whitespace.  When FILE1 or FILE2 (not both) is -, read standard input.
15
16       -a FILENUM
17              print  unpairable  lines coming from file FILENUM, where FILENUM
18              is 1 or 2, corresponding to FILE1 or FILE2
19
20       -e EMPTY
21              replace missing input fields with EMPTY
22
23       -i, --ignore-case
24              ignore differences in case when comparing fields
25
26       -j FIELD
27              equivalent to `-1 FIELD -2 FIELD'
28
29       -o FORMAT
30              obey FORMAT while constructing output line
31
32       -t CHAR
33              use CHAR as input and output field separator
34
35       -v FILENUM
36              like -a FILENUM, but suppress joined output lines
37
38       -1 FIELD
39              join on this FIELD of file 1
40
41       -2 FIELD
42              join on this FIELD of file 2
43
44       --help display this help and exit
45
46       --version
47              output version information and exit
48
49       Unless -t CHAR  is  given,  leading  blanks  separate  fields  and  are
50       ignored,  else fields are separated by CHAR.  Any FIELD is a field num‐
51       ber counted from 1.  FORMAT is one or more  comma  or  blank  separated
52       specifications, each being `FILENUM.FIELD' or `0'.  Default FORMAT out‐
53       puts the join field, the remaining fields  from  FILE1,  the  remaining
54       fields from FILE2, all separated by CHAR.
55
56       Important:  FILE1  and  FILE2 must be sorted on the join fields.  E.g.,
57       use `sort -k 1b,1' if `join' has no options.
58

AUTHOR

60       Written by Mike Haertel.
61

REPORTING BUGS

63       Report bugs to <bug-coreutils@gnu.org>.
64
66       Copyright © 2007 Free Software Foundation, Inc.
67       This is free software.  You may redistribute copies  of  it  under  the
68       terms       of       the      GNU      General      Public      License
69       <http://www.gnu.org/licenses/gpl.html>.  There is NO WARRANTY,  to  the
70       extent permitted by law.
71

SEE ALSO

73       The  full documentation for join is maintained as a Texinfo manual.  If
74       the info and join programs are properly installed  at  your  site,  the
75       command
76
77              info join
78
79       should give you access to the complete manual.
80
81
82
83GNU coreutils 6.9                 March 2008                           JOIN(1)
Impressum