xtnjoin(1)

NAME
xtnjoin - natural join operation

SYNOPSIS
xtnjoin -k list of attributes [-K list of attributes] -m reference file -f list of attributes [-N] [-n] [-H hash join] [-i input filename] [-o output filename] [-z] [-t] [-T directory of work file]

DESCRIPTION
This command is the same as xtjoin except that the attribute of a reference file specified by -K does not need to take the unique value. See xtjoin for the details.

PARAMETERS

-k list of attributes
    a list of attributes based on which join is done (mandatory)

-K list of attributes
    a list of attributes of a reference file. This is used when the attribute names of a reference file are different from those of an input file specified by -k.

-m reference file
    name of the reference file

-f list of attributes
    the attribute of a reference file which is joined with an input file

-H hash join
    hash join is performed with this option

-i input filename
    Specify the input filename for this command. If a suffix of the filename is '.gz', the command automatically unzip it beforehand. When this parameter is omitted, standard input (usulally keyboard) is regarded as input file.

-o output filename
    Specify the output filename for this command. If a suffix of the filename is '.gz', the command automatically zip the output data. When this parameter is omitted, standard output (usulally display) is regarded as output file.

-T directory of work file
    Specify the directory name for temporal files used in this command.

OPTIONS

-N  reference data not macthed: flag indicating that data of a reference file which does not match the input file is also output

-n  input data not matched: flag indicating that input data which does not match the reference file is also output

-z  compress the standard output by gz: When -o is omitted and this option is specified, the command output the result zipped.

-t  plain text: When this option is specified, the command treat the input and output data as plain text format.

EXAMPLE

 xtnjoin -k customerID -m ref.xt -f birthday,gender -i dat.xt -o rsl.xt

 xtnjoin -k customerID -m ref.xt -f birthday,gender -nN -i dat.xt -o rsl.xt

SEE ALSO
xtjoin(1), xtproduct(1), xtcommon(1)

WEB PAGE
http://musashi.adm.osaka-sandai.ac.jp

BUG REPORT
musashi@adm.osaka-sandai.ac.jp

AUTHORS
Yukinobu Hamuro,Naoki Katoh,Katsutoshi Yada