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 |
> |
Different terminators may be given for different fields by specifying |
51 |
|
additional |
52 |
|
.I \-t |
53 |
< |
options in between each output. |
53 |
> |
options between each output specification. |
54 |
|
Note that there is no space between this option and its argument. |
55 |
|
.PP |
56 |
|
An output is either a file or a command. |
85 |
|
In the case of the |
86 |
|
.I \-oa |
87 |
|
option, no number writes one line or field per stream, and numbers |
88 |
< |
greater than zero write multiple fields at a time to the same stream. |
88 |
> |
greater than zero write multiple fields per record to the same stream. |
89 |
> |
If the terminating character is set to something other than newline ('\\n'), |
90 |
> |
a newline is added after each record (in addition to the terminator). |
91 |
|
For binary output formts, no number implies one value per output. |
92 |
< |
The default tab separator |
88 |
< |
is set to the empty string for binary output streams. |
92 |
> |
No terminator characters are expected or written for binary outputs. |
93 |
|
.PP |
90 |
– |
These options may be interspersed with output specifications, |
91 |
– |
indicating different data to draw from the different files. |
92 |
– |
.PP |
94 |
|
If a |
95 |
|
.I \-on |
96 |
|
option is given with a positive integer argument, this will be the |
132 |
|
.I \-oh |
133 |
|
nor |
134 |
|
.I \-oH |
135 |
< |
may be used with the append mode ('-a'). |
136 |
< |
.SH EXAMPLE |
135 |
> |
may be used with the append mode ('-a'), which may also be toggled. |
136 |
> |
.SH EXAMPLES |
137 |
|
To alternate 5 lines between two output files: |
138 |
|
.IP "" .2i |
139 |
|
rsplit -oa5 output1.txt output2.txt < input.txt |
150 |
|
.SH AUTHOR |
151 |
|
Greg Ward |
152 |
|
.SH "SEE ALSO" |
153 |
< |
cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), rtrace(1), |
153 |
> |
cnt(1), histo(1), neaten(1), rcalc(1), rcode_depth(1), |
154 |
> |
rcode_ident(1), rcode_norm(1), rlam(1), rtrace(1), |
155 |
|
split(1), tabfunc(1), total(1) |