xtsel(1)

NAME
xtsel - selection by the specified condition

SYNOPSIS
xtsel [-k list of attributes] [-s 並べ換える項目名リスト[%{n|r}]] -c conditional equation [-S] [-R] [-r] [-u output filename] [-q] [-i input filename] [-o output filename] [-z] [-t] [-T directory of work file]

DESCRIPTION
It selects lines which satisfy the conditional equation.

PARAMETERS

-k list of attributes
    key attribute

-s 並べ換える項目名リスト
    キー項目名で指定した単位行の中で、行の順番を決めるための項目名を指 定する

-c conditional equation
    specify a mathematical expression by combining built-in operators and functions

-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

-S  single line selection: flag indicating that selection is determined for each line even if -k is specified

-R

-r  reverse condition: negate the condition given by -c

-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

 xtsel -c '$amount>1000' -i dat.xt -o rsl.xt

 xtsel -c 'length($name)>10' -i dat.xt -o rsl.xt

SEE ALSO
xtdelnul(1), xtselstr(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