ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/rlam.1
Revision: 1.6
Committed: Fri Jun 18 01:12:57 2010 UTC (14 years, 11 months ago) by greg
Branch: MAIN
Changes since 1.5: +12 -3 lines
Log Message:
Modified rlam to use -iw option for 2-byte words and added -ii and -ib options

File Contents

# User Rev Content
1 greg 1.6 .\" RCSid "$Id: rlam.1,v 1.5 2007/09/04 17:36:41 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 greg 1.6 .B \-iiN
17     |
18 greg 1.3 .B \-iwN
19 greg 1.6 |
20     .B \-ibN
21 greg 1.1 ]
22     input1 input2 ..
23     .SH DESCRIPTION
24     .I Rlam
25 greg 1.3 simply joins records (or lines) from multiple inputs, separating them with
26 greg 1.4 the given string (TAB by default).
27 greg 1.2 Different separators may be given for different files by specifying
28     additional
29     .I \-t
30     options in between each file name.
31 greg 1.4 Note that there is no space between this option and its argument.
32 greg 1.3 If none of the input files uses an ASCII separator, then no end-of-line
33     character will be printed, either.
34     .PP
35 greg 1.1 An input is either a stream or a command.
36     Commands are given in quotes, and begin with an exclamantion point ('!').
37     If the inputs do not have the same number of lines, then
38     shorter files will stop contributing to the output as they
39     run out.
40     .PP
41 greg 1.3 The
42     .I \-ia
43     option may be used to specify ASCII input (the default), or the
44     .I \-if
45     option may be used to indicated binary IEEE 32-bit floats on input.
46     Similarly, the
47     .I \-id
48     and
49 greg 1.6 .I \-ii
50 greg 1.3 options may be used to indicate binary 64-bit doubles or integer words,
51     respectively.
52 greg 1.6 The
53     .I \-iw
54     option specifies 2-byte short words, and the
55     .I \-ib
56     option specifies bytes.
57     If a number is immediately follows any of these options, then it
58 greg 1.3 indicates that multiple such values are expected for each record.
59     For example,
60     .I \-if3
61     indicates three floats per input record for the next named input.
62     In the case of the
63     .I \-ia
64     option, no number indicates one line per input record, and numbers
65     greater than zero indicate that many characters exactly per record.
66     For binary input formts, no number implies one value per record.
67 greg 1.4 For anything other than EOL-separated input, the default tab separator
68     is reset to the empty string.
69 greg 1.3 .PP
70 greg 1.1 A hyphen ('-') by itself can be used to indicate the standard
71 greg 1.3 input, and may appear multiple times.
72 greg 1.1 .SH EXAMPLE
73     To join files output1 and output2, separated by a comma:
74     .IP "" .2i
75 greg 1.5 rlam \-t, output1 output2
76 greg 1.1 .PP
77     To join a file with line numbers (starting at 0) and its reverse:
78     .IP "" .2i
79 greg 1.5 cnt `wc \-l < lam.c` | rlam \- \-t: lam.c \-t\| '!tail \-r lam.c'
80 greg 1.3 .PP
81     To join four data files, each having three doubles per record:
82     .IP "" .2i
83 greg 1.5 rlam \-id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl
84 greg 1.1 .SH AUTHOR
85     Greg Ward
86     .SH "SEE ALSO"
87 greg 1.3 cnt(1), histo(1), neaten(1), rcalc(1), tabfunc(1), total(1)