paste.rdb - paste tables and lists
SYNOPSIS
paste.rdb [ [-f[1|2]c] ] [-Dn] tableorlist1 [ tableorlist2 ] [< tableorlist2 ]
DESCRIPTION
paste.rdb
joins rows from
tableorlist1
with rows from
tableorlist2.
The output format (table or list)
is the same as the format of
tableorlist1.
When `-' is used in place of
tableorlist1
or
tableorlist2,
paste.rdb
reads the table from the standard input.
paste.rdb
is similar to
jointable
with the exception that
paste.rdb
does not care what it is pasting together,
while
jointable
looks for matching
values in key columns and only prints those rows where a match is
found.
OPTIONS
- -fc
- use c (instead of TAB) as
the input column separation character for both tableorlists.
The output column separation matches the input column
separation character.
- -fnc
- use c (instead of TAB) as
the input column separation character for tableorlistn.
The output column separation matches the input column
separation character specified for tableorlist1 (default TAB).
- -Dn
- turn on debugging at level n, or 1 if n
is not specified.
EXAMPLE
$ column Description < inventory | paste.rdb inventory -
Item Amount Cost Value Description Description
---- ------ ---- ----- ----------- -----------
1 4 50 150 rubber gloves rubber gloves
2 100 5 500 test tubes test tubes
3 5 80 400 clamps clamps
4 23 19 437 plates plates
5 99 24 2376 cleaning cloth cleaning cloth
AKA
SEE ALSO