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.6 by greg, Fri Jun 18 01:12:57 2010 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 \-iaN
11 + |
12 + .B \-ifN
13 + |
14 + .B \-idN
15 + |
16 + .B \-iiN
17 + |
18 + .B \-iwN
19 + |
20 + .B \-ibN
21   ]
22   input1 input2 ..
23   .SH DESCRIPTION
24   .I Rlam
25 < simply joins lines from multiple inputs, separating them with
26 < the given separator string (TAB by default).
25 > simply joins records (or lines) from multiple inputs, separating them with
26 > the given string (TAB by default).
27   Different separators may be given for different files by specifying
28   additional
29   .I \-t
30   options in between each file name.
31 + Note that there is no space between this option and its argument.
32 + If none of the input files uses an ASCII separator, then no end-of-line
33 + character will be printed, either.
34 + .PP
35   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 + 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 + .I \-ii
50 + options may be used to indicate binary 64-bit doubles or integer words,
51 + respectively.
52 + 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 + 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 + For anything other than EOL-separated input, the default tab separator
68 + is reset to the empty string.
69 + .PP
70   A hyphen ('-') by itself can be used to indicate the standard
71 < input.
71 > input, and may appear multiple times.
72   .SH EXAMPLE
73   To join files output1 and output2, separated by a comma:
74   .IP "" .2i
75 < rlam -t, output1 output2
75 > rlam \-t, output1 output2
76   .PP
77   To join a file with line numbers (starting at 0) and its reverse:
78   .IP "" .2i
79 < cnt `wc -l < lam.c` | rlam - -t: lam.c -t\| '!tail -r lam.c'
79 > cnt `wc \-l < lam.c` | rlam \- \-t: lam.c \-t\| '!tail \-r lam.c'
80 > .PP
81 > To join four data files, each having three doubles per record:
82 > .IP "" .2i
83 > rlam \-id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl
84   .SH AUTHOR
85   Greg Ward
86   .SH "SEE ALSO"
87 < cnt(1), neaten(1), rcalc(1), tabfunc(1), total(1)
87 > cnt(1), histo(1), neaten(1), rcalc(1), tabfunc(1), total(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines