ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/rlam.1
Revision: 1.5
Committed: Tue Sep 4 17:36:41 2007 UTC (16 years, 8 months ago) by greg
Branch: MAIN
CVS Tags: rad4R0, rad3R9
Changes since 1.4: +4 -4 lines
Log Message:
Added backslashes in front of hyphens (thanks to Bernd Zeimetz for his effort)

File Contents

# Content
1 .\" RCSid "$Id: rlam.1,v 1.4 2005/10/05 05:20:50 greg Exp $"
2 .TH RLAM 1 7/8/97 RADIANCE
3 .SH NAME
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 \-iwN
17 ]
18 input1 input2 ..
19 .SH DESCRIPTION
20 .I Rlam
21 simply joins records (or lines) from multiple inputs, separating them with
22 the given string (TAB by default).
23 Different separators may be given for different files by specifying
24 additional
25 .I \-t
26 options in between each file name.
27 Note that there is no space between this option and its argument.
28 If none of the input files uses an ASCII separator, then no end-of-line
29 character will be printed, either.
30 .PP
31 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 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 For anything other than EOL-separated input, the default tab separator
59 is reset to the empty string.
60 .PP
61 A hyphen ('-') by itself can be used to indicate the standard
62 input, and may appear multiple times.
63 .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 cnt `wc \-l < lam.c` | rlam \- \-t: lam.c \-t\| '!tail \-r lam.c'
71 .PP
72 To join four data files, each having three doubles per record:
73 .IP "" .2i
74 rlam \-id3 file1.dbl file2.dbl file3.dbl file4.dbl > combined.dbl
75 .SH AUTHOR
76 Greg Ward
77 .SH "SEE ALSO"
78 cnt(1), histo(1), neaten(1), rcalc(1), tabfunc(1), total(1)