19 |
|
.SH DESCRIPTION |
20 |
|
.I Rlam |
21 |
|
simply joins records (or lines) from multiple inputs, separating them with |
22 |
< |
the given separator string (TAB by default). |
22 |
> |
the given string (TAB by default). |
23 |
|
Different separators may be given for different files by specifying |
24 |
|
additional |
25 |
|
.I \-t |
26 |
|
options in between each file name. |
27 |
+ |
Note that there is no space between this option and its argument. |
28 |
|
If none of the input files uses an ASCII separator, then no end-of-line |
29 |
|
character will be printed, either. |
30 |
|
.PP |
55 |
|
option, no number indicates one line per input record, and numbers |
56 |
|
greater than zero indicate that many characters exactly per record. |
57 |
|
For binary input formts, no number implies one value per record. |
58 |
+ |
For anything other than EOL-separated input, the default tab separator |
59 |
+ |
is reset to the empty string. |
60 |
|
.PP |
61 |
|
A hyphen ('-') by itself can be used to indicate the standard |
62 |
|
input, and may appear multiple times. |
63 |
|
.SH EXAMPLE |
64 |
|
To join files output1 and output2, separated by a comma: |
65 |
|
.IP "" .2i |
66 |
< |
rlam -t, output1 output2 |
66 |
> |
rlam \-t, output1 output2 |
67 |
|
.PP |
68 |
|
To join a file with line numbers (starting at 0) and its reverse: |
69 |
|
.IP "" .2i |
70 |
< |
cnt `wc -l < lam.c` | rlam - -t: lam.c -t\| '!tail -r lam.c' |
70 |
> |
cnt `wc \-l < lam.c` | rlam \- \-t: lam.c \-t\| '!tail \-r lam.c' |
71 |
|
.PP |
72 |
|
To join four data files, each having three doubles per record: |
73 |
|
.IP "" .2i |
74 |
< |
rlam -id3 -t file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl |
74 |
> |
rlam \-id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl |
75 |
|
.SH AUTHOR |
76 |
|
Greg Ward |
77 |
|
.SH "SEE ALSO" |