| 1 |
greg |
1.2 |
.\" RCSid "$Id: rlam.1,v 1.1 2004/01/01 19:31:45 greg Exp $" |
| 2 |
greg |
1.1 |
.TH RLAM 1 7/8/97 RADIANCE |
| 3 |
|
|
.SH NAME |
| 4 |
|
|
rlam - laminate lines (records) from multiple files |
| 5 |
|
|
.SH SYNOPSIS |
| 6 |
|
|
.B rlam |
| 7 |
|
|
[ |
| 8 |
greg |
1.2 |
.B \-tS |
| 9 |
greg |
1.1 |
] |
| 10 |
|
|
input1 input2 .. |
| 11 |
|
|
.SH DESCRIPTION |
| 12 |
|
|
.I Rlam |
| 13 |
|
|
simply joins lines from multiple inputs, separating them with |
| 14 |
greg |
1.2 |
the given separator string (TAB by default). |
| 15 |
|
|
Different separators may be given for different files by specifying |
| 16 |
|
|
additional |
| 17 |
|
|
.I \-t |
| 18 |
|
|
options in between each file name. |
| 19 |
greg |
1.1 |
An input is either a stream or a command. |
| 20 |
|
|
Commands are given in quotes, and begin with an exclamantion point ('!'). |
| 21 |
|
|
If the inputs do not have the same number of lines, then |
| 22 |
|
|
shorter files will stop contributing to the output as they |
| 23 |
|
|
run out. |
| 24 |
|
|
.PP |
| 25 |
|
|
A hyphen ('-') by itself can be used to indicate the standard |
| 26 |
|
|
input. |
| 27 |
|
|
.SH EXAMPLE |
| 28 |
|
|
To join files output1 and output2, separated by a comma: |
| 29 |
|
|
.IP "" .2i |
| 30 |
|
|
rlam -t, output1 output2 |
| 31 |
|
|
.PP |
| 32 |
|
|
To join a file with line numbers (starting at 0) and its reverse: |
| 33 |
|
|
.IP "" .2i |
| 34 |
greg |
1.2 |
cnt `wc -l < lam.c` | rlam - -t: lam.c -t\| '!tail -r lam.c' |
| 35 |
greg |
1.1 |
.SH AUTHOR |
| 36 |
|
|
Greg Ward |
| 37 |
|
|
.SH "SEE ALSO" |
| 38 |
|
|
cnt(1), neaten(1), rcalc(1), tabfunc(1), total(1) |