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