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

Comparing ray/doc/man/man1/rsplit.1 (file contents):
Revision 1.1 by greg, Fri Jul 5 00:20:57 2019 UTC vs.
Revision 1.13 by greg, Wed May 15 18:58:54 2024 UTC

# Line 15 | Line 15 | rsplit - splits standard input into multiple output fi
15   ][
16   .B \-oH
17   ][
18 + .B "\-x xres \-y yres"
19 + ][
20   .B \-oaN
21   |
22   .B \-ofN
23   |
24   .B \-odN
25   |
24 .B \-ocN
25 |
26   .B \-oiN
27   |
28   .B \-owN
# Line 41 | Line 41 | output1 [options] output2 ..
41   writes lines or fields from the standard input to one or more output
42   streams.
43   By default, fields are separated by a
44 < newline character, but the terminator can be changed using the
44 > newline character (i.e., input is distributed by lines),
45 > but the terminator can be changed using the
46   .I \-t
47   option.
48 < Different separators may be given for different fields by specifying
48 > If a space is specified as the terminator, then fields are separated by
49 > any number of white spaces, including tabs, returns, and newlines.
50 > Different terminators may be given for different fields by specifying
51   additional
52   .I \-t
53 < options in between each output.
54 < Note that there is no space between this option and its argument.
53 > options between each output specification.
54 > Note that there is no space between this option and its argument, and
55 > certain arguments, such as a space or a tab, must be quoted or escaped
56 > with a backslash in most shells.
57 > If no argument is given, the default newline terminator is re-established.
58   .PP
59 < An output is either a file or a command.
60 < If an output file exists, it will not be overwritten unless the
59 > Output is either to a file, to a command, to the standard output, or to discard.
60 > If a named output file exists, it will not be overwritten unless the
61   .I \-f
62   option is given, or it is being appended using the
63   .I \-a
64   option.
65 + The same output file may not appear more than once.
66   Commands are given in quotes, and begin with an exclamantion point ('!').
67 + At most, one command may reliably write to its standard output, and
68 + doing so is incompatible with
69 + .I rsplit
70 + also writing to standard output.
71 + A hyphen ('-') by itself tells
72 + .I rsplit
73 + to write directly to its standard output, and may appear multiple times.
74 + The options before the first appearance determine the
75 + standard output header parameters.
76 + A period ('.') tells
77 + .I rsplit
78 + to discard the corresponding data, and also may appear multiple times.
79   .PP
80   The
81   .I \-oa
# Line 82 | Line 101 | indicates three floats per output record for the next
101   In the case of the
102   .I \-oa
103   option, no number writes one line or field per stream, and numbers
104 < greater than zero write multiple fields at a time to the same stream.
104 > greater than zero write multiple fields per record to the same stream.
105 > If the terminating character is set to something other than newline ('\\n'),
106 > a newline is added after each record (in addition to the terminator).
107   For binary output formts, no number implies one value per output.
108 < The default tab separator
88 < is set to the empty string for binary output streams.
108 > No terminator characters are expected or written for binary outputs.
109   .PP
90 These options may be interspersed with output specifications,
91 indicating different data to draw from the different files.
92 .PP
110   If a
111   .I \-on
112   option is given with a positive integer argument, this will be the
113   maximum number of records that will be written by
114   .I rsplit.
115   .PP
99 A hyphen ('-') by itself can be used to indicate the standard
100 output, and may appear multiple times.
101 Results will be unpredictable if the standard output is specified
102 in this way
103 and any of the command outputs also writes to their standard output.
104 At most, one command may reliably write to its standard output.
105 .PP
116   The
117   .I \-ih
118   option tells
# Line 131 | Line 141 | Neither
141   .I \-oh
142   nor
143   .I \-oH
144 < may be used with the append mode ('-a').
145 < .SH EXAMPLE
144 > may be used with the append mode ('-a'), which may also be toggled.
145 > .SH EXAMPLES
146   To alternate 5 lines between two output files:
147   .IP "" .2i
148 < rsplit -ia5 output1.txt output2.txt < input.txt
148 > rsplit -oa5 output1.txt output2.txt < input.txt
149   .PP
150   To send the first of each double precision triplet to one file, and the second
151   and third to a second file, stopping after 500 triplets:
152   .IP "" .2i
153 < rsplit -on 500 -id firstvals.dbl -id2 secondpairs.dbl < input.dbl
153 > rsplit -on 500 -od firstvals.dbl -od2 followingpairs.dbl < triplets.dbl
154   .PP
155   To convey material, color and distance information from rtrace to
156   separate files:
# Line 149 | Line 159 | vwrays [viewspec] | rtrace [options] -x 1024 -y 768 -h
159   .SH AUTHOR
160   Greg Ward
161   .SH "SEE ALSO"
162 < cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), rtrace(1),
163 < split(1), tabfunc(1), total(1)
162 > cnt(1), histo(1), neaten(1), rcalc(1), rcode_depth(1),
163 > rcode_ident(1), rcode_norm(1), rcode2bmp(1), rcrop(1),
164 > rlam(1), rtpict(1), rtrace(1), split(1), tabfunc(1), total(1)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines