23 |
|
][ |
24 |
|
.B "\-in M" |
25 |
|
] |
26 |
< |
input1 input2 .. |
26 |
> |
input1 [options] input2 .. |
27 |
|
.SH DESCRIPTION |
28 |
|
.I Rlam |
29 |
|
simply joins records (or lines) from multiple inputs, separating them with |
38 |
|
.PP |
39 |
|
An input is either a stream or a command. |
40 |
|
Commands are given in quotes, and begin with an exclamantion point ('!'). |
41 |
< |
If the inputs do not have the same number of lines, then |
41 |
> |
If the inputs do not have the same number of records, then |
42 |
|
shorter files will stop contributing to the output as they |
43 |
|
run out. |
44 |
|
.PP |
65 |
|
indicates three floats per input record for the next named input. |
66 |
|
In the case of the |
67 |
|
.I \-ia |
68 |
< |
option, no number indicates one line per input record, and numbers |
69 |
< |
greater than zero indicate that many characters exactly per record. |
68 |
> |
option, no number reads one line per record, and numbers |
69 |
> |
greater than zero take multiple lines at a time from the same stream. |
70 |
|
For binary input formts, no number implies one value per record. |
71 |
|
For anything other than EOL-separated input, the default tab separator |
72 |
|
is reset to the empty string. |
73 |
|
.PP |
74 |
+ |
These options may be interspersed with input specifications, |
75 |
+ |
indicating different data to draw from the different files. |
76 |
+ |
.PP |
77 |
|
If a |
78 |
|
.I \-in |
79 |
|
option is given with a positive integer argument, this will be the |
97 |
|
To join four data files, each having three doubles per record: |
98 |
|
.IP "" .2i |
99 |
|
rlam \-id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl |
100 |
+ |
.PP |
101 |
+ |
To join two data files, the first having two words per |
102 |
+ |
record and the second having one: |
103 |
+ |
.IP "" .2i |
104 |
+ |
rlam \-iw2 file1.hi2 \-iw file2.hi1 > combined.hi3 |
105 |
|
.SH AUTHOR |
106 |
|
Greg Ward |
107 |
|
.SH "SEE ALSO" |
108 |
< |
cnt(1), histo(1), neaten(1), rcalc(1), tabfunc(1), total(1) |
108 |
> |
cnt(1), histo(1), neaten(1), rcalc(1), rsplit(1), tabfunc(1), total(1) |