ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/rlam.1
(Generate patch)

Comparing ray/doc/man/man1/rlam.1 (file contents):
Revision 1.2 by greg, Mon Jun 13 22:40:46 2005 UTC vs.
Revision 1.12 by greg, Sat Jul 20 00:57:43 2019 UTC

# Line 1 | Line 1
1   .\" RCSid "$Id$"
2   .TH RLAM 1 7/8/97 RADIANCE
3   .SH NAME
4 < rlam - laminate lines (records) from multiple files
4 > rlam - laminate records from multiple files
5   .SH SYNOPSIS
6   .B rlam
7   [
8   .B \-tS
9 + ][
10 + .B \-u
11 + ][
12 + .B \-iaN
13 + |
14 + .B \-ifN
15 + |
16 + .B \-idN
17 + |
18 + .B \-iiN
19 + |
20 + .B \-iwN
21 + |
22 + .B \-ibN
23 + ][
24 + .B "\-in M"
25   ]
26 < input1 input2 ..
26 > input1 [options] input2 ..
27   .SH DESCRIPTION
28   .I Rlam
29 < simply joins lines from multiple inputs, separating them with
30 < the given separator string (TAB by default).
29 > simply joins records (or lines) from multiple inputs, separating them with
30 > the given string (TAB by default).
31   Different separators may be given for different files by specifying
32   additional
33   .I \-t
34   options in between each file name.
35 < An input is either a stream or a command.
35 > Note that there is no space between this option and its argument.
36 > If no argument is given, then a newline is assumed.
37 > If none of the input files uses an ASCII separator, then no end-of-line
38 > character will be printed, either.
39 > .PP
40 > An input is either a file or a command.
41   Commands are given in quotes, and begin with an exclamantion point ('!').
42 < If the inputs do not have the same number of lines, then
42 > If the inputs do not have the same number of records, then
43   shorter files will stop contributing to the output as they
44   run out.
45   .PP
46 + The
47 + .I \-ia
48 + option may be used to specify ASCII input (the default), or the
49 + .I \-if
50 + option may be used to indicated binary IEEE 32-bit floats on input.
51 + Similarly, the
52 + .I \-id
53 + and
54 + .I \-ii
55 + options may be used to indicate binary 64-bit doubles or integer words,
56 + respectively.
57 + The
58 + .I \-iw
59 + option specifies 2-byte short words, and the
60 + .I \-ib
61 + option specifies bytes.
62 + If a number immediately follows any of these options, then it
63 + indicates that multiple such values are expected for each record.
64 + For example,
65 + .I \-if3
66 + indicates three floats per input record for the next named input.
67 + In the case of the
68 + .I \-ia
69 + option, no number reads one line per record, and numbers
70 + greater than zero take multiple lines at a time from the same stream.
71 + For binary input formts, no number implies one value per record.
72 + For anything other than EOL-separated input, the default tab separator
73 + is reset to the empty string.
74 + .PP
75 + These options may be interspersed with input specifications,
76 + indicating different data to draw from the different files.
77 + .PP
78 + If a
79 + .I \-in
80 + option is given with a positive integer argument, this will be the
81 + maximum number of records that will be read or produced by
82 + .I rlam.
83 + .PP
84   A hyphen ('-') by itself can be used to indicate the standard
85 < input.
86 < .SH EXAMPLE
85 > input, and may appear multiple times.
86 > The
87 > .I \-u
88 > option forces output after each record (i.e., one run through inputs).
89 > .SH EXAMPLES
90   To join files output1 and output2, separated by a comma:
91   .IP "" .2i
92 < rlam -t, output1 output2
92 > rlam \-t, output1 output2
93   .PP
94   To join a file with line numbers (starting at 0) and its reverse:
95   .IP "" .2i
96 < cnt `wc -l < lam.c` | rlam - -t: lam.c -t\| '!tail -r lam.c'
96 > cnt `wc \-l < lam.c` | rlam \- \-t: lam.c \-t\| '!tail \-r lam.c'
97 > .PP
98 > To join four data files, each having three doubles per record:
99 > .IP "" .2i
100 > rlam \-id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl
101 > .PP
102 > To join two data files, the first having two words per
103 > record and the second having one:
104 > .IP "" .2i
105 > rlam \-iw2 file1.hi2 \-iw file2.hi1 > combined.hi3
106   .SH AUTHOR
107   Greg Ward
108   .SH "SEE ALSO"
109 < cnt(1), neaten(1), rcalc(1), tabfunc(1), total(1)
109 > cnt(1), histo(1), neaten(1), rcalc(1), rsplit(1), tabfunc(1), total(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines