| 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 |
| 90 |
|
In the case of the |
| 91 |
|
.I \-oa |
| 92 |
|
option, no number writes one line or field per stream, and numbers |
| 93 |
< |
greater than zero write multiple fields at a time to the same stream. |
| 93 |
> |
greater than zero write multiple fields per record to the same stream. |
| 94 |
> |
If the terminating character is set to something other than newline ('\\n'), |
| 95 |
> |
a newline is added after each record (in addition to the terminator). |
| 96 |
|
For binary output formts, no number implies one value per output. |
| 97 |
< |
The default tab separator |
| 88 |
< |
is set to the empty string for binary output streams. |
| 97 |
> |
No terminator characters are expected or written for binary outputs. |
| 98 |
|
.PP |
| 90 |
– |
These options may be interspersed with output specifications, |
| 91 |
– |
indicating different data to draw from the different files. |
| 92 |
– |
.PP |
| 99 |
|
If a |
| 100 |
|
.I \-on |
| 101 |
|
option is given with a positive integer argument, this will be the |
| 137 |
|
.I \-oh |
| 138 |
|
nor |
| 139 |
|
.I \-oH |
| 140 |
< |
may be used with the append mode ('-a'). |
| 141 |
< |
.SH EXAMPLE |
| 140 |
> |
may be used with the append mode ('-a'), which may also be toggled. |
| 141 |
> |
.SH EXAMPLES |
| 142 |
|
To alternate 5 lines between two output files: |
| 143 |
|
.IP "" .2i |
| 144 |
< |
rsplit -ia5 output1.txt output2.txt < input.txt |
| 144 |
> |
rsplit -oa5 output1.txt output2.txt < input.txt |
| 145 |
|
.PP |
| 146 |
|
To send the first of each double precision triplet to one file, and the second |
| 147 |
|
and third to a second file, stopping after 500 triplets: |
| 148 |
|
.IP "" .2i |
| 149 |
< |
rsplit -on 500 -id firstvals.dbl -id2 secondpairs.dbl < input.dbl |
| 149 |
> |
rsplit -on 500 -od firstvals.dbl -od2 followingpairs.dbl < triplets.dbl |
| 150 |
|
.PP |
| 151 |
|
To convey material, color and distance information from rtrace to |
| 152 |
|
separate files: |
| 155 |
|
.SH AUTHOR |
| 156 |
|
Greg Ward |
| 157 |
|
.SH "SEE ALSO" |
| 158 |
< |
cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), rtrace(1), |
| 158 |
> |
cnt(1), histo(1), neaten(1), rcalc(1), rcode_depth(1), |
| 159 |
> |
rcode_ident(1), rcode_norm(1), rlam(1), rtrace(1), |
| 160 |
|
split(1), tabfunc(1), total(1) |