dbmerge (1) - Linux Manuals
dbmerge: merge all inputs in sorted order based on the the specified columns
NAME
dbmerge - merge all inputs in sorted order based on the the specified columns
SYNOPSIS
dbmerge --input A.fsdb --input B.fsdb [-T TemporaryDirectory] [-nNrR] column [column...]
or
or
Inputs must have identical schemas (columns, column order,
and field separators).
Unlike dbmerge2, dbmerge supports an arbitrary number of
input files.
Because this program is intended to merge multiple sources,
it does not default to reading from standard input.
If you wish to list - as an explicit input source.
Also, because we deal with multiple input files,
this module doesn't output anything until it's run.
dbmerge consumes a fixed amount of memory regardless of input size.
It therefore buffers output on disk as necessary.
(Merging is implemented a series of two-way merges,
so disk space is O(number of records).)
dbmerge will merge data in parallel, if possible.
The <--parallelism> option can control the degree of parallelism,
if desired.
Sort specification options (can be interspersed with column names):
This module also supports the standard fsdb options:
File b.fsdb:
These two files are both sorted by "cname",
and they have identical schemas.
or
This program is distributed under terms of the GNU general
public license, version 2. See the file COPYING
with the distribution for details.
DESCRIPTION
Merge all provided, pre-sorted input files, producing one sorted result.
Inputs can both be specified with "--input", or one can come
from standard input and the other from "--input".
With "--xargs", each line of standard input is a filename for input.
OPTIONS
General option:
SAMPLE USAGE
Input:
File a.fsdb:
#fsdb cid cname
11 numanal
10 pascal
#fsdb cid cname
12 os
13 statistics
Command:
dbmerge --input a.fsdb --input b.fsdb cname
cat a.fsdb | dbmerge --input b.fsdb cname
Output:
#fsdb cid cname
11 numanal
12 os
10 pascal
13 statistics
# | dbmerge --input a.fsdb --input b.fsdb cname
AUTHOR and COPYRIGHT
Copyright (C) 1991-2015 by John Heidemann <johnh [at] isi.edu>