rdbcat - concatenate RDB files
rdbcat [options] files
Options may be abbreviated. Options which take values may be
separated from the values by white space or a = character.
filename. If a column of that name
exists in the input data, it will refuse to continue.
filename
rdbcat concatenates RDB files. The first file that it reads is used as a template; all other files must have the same columns as the first (unless the --fix option is specified). The column types must agree, but they need not be in the same order. The concatenated mess is written to the UNIX standard output stream. Comments in the template file are preserved; they are discarded in the following files.
rdbcat can create columns in the output file containing the values of header variables (the column will be eponomyously named). Each input RDB file should have all of the variables, unless the --fix option is specified.
Unlike most RDB programs, rdbcat does not operate on the UNIX standard input stream by default. To specify standard input, use a filename of either the string `stdin' or `-'. You'll have to precede the `-' with a `--' to indicate that it's not another option, i.e.
rdbcat -- - foo.rdb
Given foo1.rdb,
Name Address Zip
S S N
me here 20
you there 30
and foo2.rdb.
Name Zip Address
S N S
they 3 there
he 2 where
The result of
rdbcat foo1.rdb foo2.rdb
is
Name Address Zip
S S N
me here 20
you there 30
they there 3
he where 2
The result of
rdbcat -f foo1.rdb foo2.rdb
is
filename Name Address Zip
S S S N
foo1.rdb me here 20
foo1.rdb you there 30
foo2.rdb they there 3
foo2.rdb he where 2
Diab Jerius ( djerius@cfa.harvard.edu )
$Revision: 1.15 $ $Date: 2001/02/09 20:11:06 $