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 |
+ |
If no character is specified, the default (newline) is used. |
56 |
|
.PP |
57 |
|
An output is either a file or a command. |
58 |
|
If an output file exists, it will not be overwritten unless the |
86 |
|
In the case of the |
87 |
|
.I \-oa |
88 |
|
option, no number writes one line or field per stream, and numbers |
89 |
< |
greater than zero write multiple fields at a time to the same stream. |
89 |
> |
greater than zero write multiple fields per record to the same stream. |
90 |
> |
If the terminating character is set to something other than newline ('\\n'), |
91 |
> |
a newline is added after each record (in addition to the terminator). |
92 |
|
For binary output formts, no number implies one value per output. |
93 |
< |
The default tab separator |
88 |
< |
is set to the empty string for binary output streams. |
93 |
> |
The terminator is not used for binary output streams. |
94 |
|
.PP |
95 |
|
These options may be interspersed with output specifications, |
96 |
|
indicating different data to draw from the different files. |
136 |
|
.I \-oh |
137 |
|
nor |
138 |
|
.I \-oH |
139 |
< |
may be used with the append mode ('-a'). |
140 |
< |
.SH EXAMPLE |
139 |
> |
may be used with the append mode ('-a'), which may also be toggled. |
140 |
> |
.SH EXAMPLES |
141 |
|
To alternate 5 lines between two output files: |
142 |
|
.IP "" .2i |
143 |
|
rsplit -oa5 output1.txt output2.txt < input.txt |
154 |
|
.SH AUTHOR |
155 |
|
Greg Ward |
156 |
|
.SH "SEE ALSO" |
157 |
< |
cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), rtrace(1), |
157 |
> |
cnt(1), histo(1), neaten(1), rcalc(1), rcode_depth(1), |
158 |
> |
rcode_ident(1), rcode_norm(1), rlam(1), rtrace(1), |
159 |
|
split(1), tabfunc(1), total(1) |