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.7 by greg, Fri Jun 18 21:22:49 2010 UTC vs.
Revision 1.12 by greg, Sat Jul 20 00:57:43 2019 UTC

# Line 20 | Line 20 | rlam - laminate records from multiple files
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 records (or lines) from multiple inputs, separating them with
# Line 31 | Line 33 | additional
33   .I \-t
34   options in between each file name.
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 stream or a command.
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
# Line 56 | Line 59 | The
59   option specifies 2-byte short words, and the
60   .I \-ib
61   option specifies bytes.
62 < If a number is immediately follows any of these options, then it
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 indicates one line per input record, and numbers
70 < greater than zero indicate that many characters exactly per record.
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, 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 EXAMPLE
89 > .SH EXAMPLES
90   To join files output1 and output2, separated by a comma:
91   .IP "" .2i
92   rlam \-t, output1 output2
# Line 86 | Line 98 | cnt `wc \-l < lam.c` | rlam \- \-t: lam.c \-t\| '!tail
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), histo(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