version 1, including all changes.
.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
JOIN |
|
|
2 |
!!!JOIN |
|
|
3 |
NAME |
|
|
4 |
SYNOPSIS |
|
|
5 |
DESCRIPTION |
|
|
6 |
AUTHOR |
|
|
7 |
REPORTING BUGS |
|
|
8 |
COPYRIGHT |
|
|
9 |
SEE ALSO |
|
|
10 |
---- |
|
|
11 |
!!NAME |
|
|
12 |
|
|
|
13 |
|
|
|
14 |
join - join lines of two files on a common field |
|
|
15 |
!!SYNOPSIS |
|
|
16 |
|
|
|
17 |
|
|
|
18 |
__join__ [[''OPTION'']... ''FILE1 |
|
|
19 |
FILE2'' |
|
|
20 |
!!DESCRIPTION |
|
|
21 |
|
|
|
22 |
|
|
|
23 |
For each pair of input lines with identical join fields, |
|
|
24 |
write a line to standard output. The default join field is |
|
|
25 |
the first, delimited by whitespace. When FILE1 or FILE2 (not |
|
|
26 |
both) is -, read standard input. |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
__-a__ SIDE |
|
|
30 |
|
|
|
31 |
|
|
|
32 |
print unpairable lines coming from file SIDE |
|
|
33 |
|
|
|
34 |
|
|
|
35 |
__-e__ EMPTY |
|
|
36 |
|
|
|
37 |
|
|
|
38 |
replace missing input fields with EMPTY |
|
|
39 |
|
|
|
40 |
|
|
|
41 |
__-i__, __--ignore-case__ ignore differences in case |
|
|
42 |
when comparing fields |
|
|
43 |
|
|
|
44 |
|
|
|
45 |
__-j__ FIELD |
|
|
46 |
|
|
|
47 |
|
|
|
48 |
(obsolescent) equivalent to `-1 FIELD __-2__ |
|
|
49 |
FIELD' |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
__-j1__ FIELD |
|
|
53 |
|
|
|
54 |
|
|
|
55 |
(obsolescent) equivalent to `-1 FIELD' |
|
|
56 |
|
|
|
57 |
|
|
|
58 |
__-j2__ FIELD |
|
|
59 |
|
|
|
60 |
|
|
|
61 |
(obsolescent) equivalent to `-2 FIELD' |
|
|
62 |
|
|
|
63 |
|
|
|
64 |
__-n__ |
|
|
65 |
|
|
|
66 |
|
|
|
67 |
input files are sorted numerically |
|
|
68 |
|
|
|
69 |
|
|
|
70 |
__-o__ FORMAT |
|
|
71 |
|
|
|
72 |
|
|
|
73 |
obey FORMAT while constructing output line |
|
|
74 |
|
|
|
75 |
|
|
|
76 |
__-t__ CHAR |
|
|
77 |
|
|
|
78 |
|
|
|
79 |
use CHAR as input and output field separator |
|
|
80 |
|
|
|
81 |
|
|
|
82 |
__-v__ SIDE |
|
|
83 |
|
|
|
84 |
|
|
|
85 |
like __-a__ SIDE, but suppress joined output |
|
|
86 |
lines |
|
|
87 |
|
|
|
88 |
|
|
|
89 |
__-1__ FIELD |
|
|
90 |
|
|
|
91 |
|
|
|
92 |
join on this FIELD of file 1 |
|
|
93 |
|
|
|
94 |
|
|
|
95 |
__-2__ FIELD |
|
|
96 |
|
|
|
97 |
|
|
|
98 |
join on this FIELD of file 2 |
|
|
99 |
|
|
|
100 |
|
|
|
101 |
__--help__ |
|
|
102 |
|
|
|
103 |
|
|
|
104 |
display this help and exit |
|
|
105 |
|
|
|
106 |
|
|
|
107 |
__--version__ |
|
|
108 |
|
|
|
109 |
|
|
|
110 |
output version information and exit |
|
|
111 |
|
|
|
112 |
|
|
|
113 |
Unless __-t__ CHAR is given, leading blanks separate |
|
|
114 |
fields and are ignored, else fields are separated by CHAR. |
|
|
115 |
Any FIELD is a field number counted from 1. FORMAT is one or |
|
|
116 |
more comma or blank separated specifications, each being |
|
|
117 |
`SIDE.FIELD' or `0'. Default FORMAT outputs the join field, |
|
|
118 |
the remaining fields from FILE1, the remaining fields from |
|
|
119 |
FILE2, all separated by CHAR. |
|
|
120 |
!!AUTHOR |
|
|
121 |
|
|
|
122 |
|
|
|
123 |
Written by Mike Haertel. |
|
|
124 |
!!REPORTING BUGS |
|
|
125 |
|
|
|
126 |
|
|
|
127 |
Report bugs to |
|
|
128 |
!!COPYRIGHT |
|
|
129 |
|
|
|
130 |
|
|
|
131 |
Copyright 1999 Free Software Foundation, Inc. |
|
|
132 |
This is free software; see the source for copying |
|
|
133 |
conditions. There is NO warranty; not even for |
|
|
134 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
|
135 |
PURPOSE. |
|
|
136 |
!!SEE ALSO |
|
|
137 |
|
|
|
138 |
|
|
|
139 |
The full documentation for __join__ is maintained as a |
|
|
140 |
Texinfo manual. If the __info__ and __join__ programs |
|
|
141 |
are properly installed at your site, the |
|
|
142 |
command |
|
|
143 |
|
|
|
144 |
|
|
|
145 |
__info join__ |
|
|
146 |
|
|
|
147 |
|
|
|
148 |
should give you access to the complete manual. |
|
|
149 |
---- |