47 |
|
but the terminator can be changed using the |
48 |
|
.I \-t |
49 |
|
option. |
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 between each output specification. |
56 |
< |
Note that there is no space between this option and its argument. |
57 |
< |
If no character is specified, the default (newline) is used. |
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 |
65 |
|
.I \-a |
66 |
|
option. |
67 |
|
Commands are given in quotes, and begin with an exclamantion point ('!'). |
68 |
+ |
A period ('.') may also be specified as output, |
69 |
+ |
which indicates that no output is desired for this field. |
70 |
+ |
The corresponding data will be skipped on the input. |
71 |
|
.PP |
72 |
|
The |
73 |
|
.I \-oa |
97 |
|
If the terminating character is set to something other than newline ('\\n'), |
98 |
|
a newline is added after each record (in addition to the terminator). |
99 |
|
For binary output formts, no number implies one value per output. |
100 |
< |
The terminator is not used for binary output streams. |
100 |
> |
No terminator characters are expected or written for binary outputs. |
101 |
|
.PP |
95 |
– |
These options may be interspersed with output specifications, |
96 |
– |
indicating different data to draw from the different files. |
97 |
– |
.PP |
102 |
|
If a |
103 |
|
.I \-on |
104 |
|
option is given with a positive integer argument, this will be the |
107 |
|
.PP |
108 |
|
A hyphen ('-') by itself can be used to indicate the standard |
109 |
|
output, and may appear multiple times. |
110 |
+ |
The options before the first appearance determine the |
111 |
+ |
header parameters, if any. |
112 |
|
Results will be unpredictable if the standard output is specified |
113 |
|
in this way |
114 |
|
and any of the command outputs also writes to their standard output. |
142 |
|
.I \-oh |
143 |
|
nor |
144 |
|
.I \-oH |
145 |
< |
may be used with the append mode ('-a'). |
145 |
> |
may be used with the append mode ('-a'), which may also be toggled. |
146 |
|
.SH EXAMPLES |
147 |
|
To alternate 5 lines between two output files: |
148 |
|
.IP "" .2i |
160 |
|
.SH AUTHOR |
161 |
|
Greg Ward |
162 |
|
.SH "SEE ALSO" |
163 |
< |
cnt(1), histo(1), neaten(1), rcalc(1), rlam(1), rtrace(1), |
164 |
< |
split(1), tabfunc(1), total(1) |
163 |
> |
cnt(1), histo(1), neaten(1), rcalc(1), rcode_depth(1), |
164 |
> |
rcode_ident(1), rcode_norm(1), rcode2bmp(1), |
165 |
> |
rlam(1), rtpict(1), rtrace(1), split(1), tabfunc(1), total(1) |