xtbest(1)

NAME
xtbest - selection of best records

SYNOPSIS
xtbest [-k attribute list] [-s a list of attrbutes whose value determines the ordering of records having the same key value[%{n|r}]] -R list of intervals of line numbers [-r] [-u output filename] [-q] [-i input filename] [-o output filename] [-z] [-t] [-T directory of work file]

DESCRIPTION
For the attribute specified by -k, this command selects lines specified by -R.

PARAMETERS

-k attribute list
    an attribute list for which enumeration is performed (when -k is omitted, all lines are assumed to take the same key value)

-s a list of attrbutes whose value determines the ordering of records having the same key value
    this specifies the list of attributes whose values determines the ordering of records having the same key value

-R list of intervals of line numbers
    specify the lines targeted

-u output filename
    output filename for the data unmatched to the condition specified on the other parameter

-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

-r  negate the condition: select the lines other than those specified by -R

-q  the transaction of sequential: When this option specified with -k parameter, the command process the input data following the original sequence of the lines, instead of processing after sorting the field specified by -k parameter.

-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

 xtbest -R 100 -i dat.xt -o rsl.xt

 xtbest -R 51_100 -i dat.xt -o rsl.xt

 xtbest -k date R 1,2,3 -i dat.xt -o rsl.xt

 xtbest -R MIN_10,20_MAX -i dat.xt -o rsl.xt

SEE ALSO
xtsel(1), xtuniq(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