| 1 | greg | 1.4 | .\" RCSid "$Id: rlam.1,v 1.3 2005/09/25 20:36:01 greg Exp $" | 
| 2 | greg | 1.1 | .TH RLAM 1 7/8/97 RADIANCE | 
| 3 |  |  | .SH NAME | 
| 4 | greg | 1.3 | rlam - laminate records from multiple files | 
| 5 | greg | 1.1 | .SH SYNOPSIS | 
| 6 |  |  | .B rlam | 
| 7 |  |  | [ | 
| 8 | greg | 1.2 | .B \-tS | 
| 9 | greg | 1.3 | ][ | 
| 10 |  |  | .B \-iaN | 
| 11 |  |  | | | 
| 12 |  |  | .B \-ifN | 
| 13 |  |  | | | 
| 14 |  |  | .B \-idN | 
| 15 |  |  | | | 
| 16 |  |  | .B \-iwN | 
| 17 | greg | 1.1 | ] | 
| 18 |  |  | input1 input2 .. | 
| 19 |  |  | .SH DESCRIPTION | 
| 20 |  |  | .I Rlam | 
| 21 | greg | 1.3 | simply joins records (or lines) from multiple inputs, separating them with | 
| 22 | greg | 1.4 | the given string (TAB by default). | 
| 23 | greg | 1.2 | Different separators may be given for different files by specifying | 
| 24 |  |  | additional | 
| 25 |  |  | .I \-t | 
| 26 |  |  | options in between each file name. | 
| 27 | greg | 1.4 | Note that there is no space between this option and its argument. | 
| 28 | greg | 1.3 | If none of the input files uses an ASCII separator, then no end-of-line | 
| 29 |  |  | character will be printed, either. | 
| 30 |  |  | .PP | 
| 31 | greg | 1.1 | An input is either a stream or a command. | 
| 32 |  |  | Commands are given in quotes, and begin with an exclamantion point ('!'). | 
| 33 |  |  | If the inputs do not have the same number of lines, then | 
| 34 |  |  | shorter files will stop contributing to the output as they | 
| 35 |  |  | run out. | 
| 36 |  |  | .PP | 
| 37 | greg | 1.3 | The | 
| 38 |  |  | .I \-ia | 
| 39 |  |  | option may be used to specify ASCII input (the default), or the | 
| 40 |  |  | .I \-if | 
| 41 |  |  | option may be used to indicated binary IEEE 32-bit floats on input. | 
| 42 |  |  | Similarly, the | 
| 43 |  |  | .I \-id | 
| 44 |  |  | and | 
| 45 |  |  | .I \-iw | 
| 46 |  |  | options may be used to indicate binary 64-bit doubles or integer words, | 
| 47 |  |  | respectively. | 
| 48 |  |  | If an number is immediately follows any of these options, then it | 
| 49 |  |  | indicates that multiple such values are expected for each record. | 
| 50 |  |  | For example, | 
| 51 |  |  | .I \-if3 | 
| 52 |  |  | indicates three floats per input record for the next named input. | 
| 53 |  |  | In the case of the | 
| 54 |  |  | .I \-ia | 
| 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 | greg | 1.4 | For anything other than EOL-separated input, the default tab separator | 
| 59 |  |  | is reset to the empty string. | 
| 60 | greg | 1.3 | .PP | 
| 61 | greg | 1.1 | A hyphen ('-') by itself can be used to indicate the standard | 
| 62 | greg | 1.3 | input, and may appear multiple times. | 
| 63 | greg | 1.1 | .SH EXAMPLE | 
| 64 |  |  | To join files output1 and output2, separated by a comma: | 
| 65 |  |  | .IP "" .2i | 
| 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 | greg | 1.2 | cnt `wc -l < lam.c` | rlam - -t: lam.c -t\| '!tail -r lam.c' | 
| 71 | greg | 1.3 | .PP | 
| 72 |  |  | To join four data files, each having three doubles per record: | 
| 73 |  |  | .IP "" .2i | 
| 74 | greg | 1.4 | rlam -id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl | 
| 75 | greg | 1.1 | .SH AUTHOR | 
| 76 |  |  | Greg Ward | 
| 77 |  |  | .SH "SEE ALSO" | 
| 78 | greg | 1.3 | cnt(1), histo(1), neaten(1), rcalc(1), tabfunc(1), total(1) |