xtsession(1)

NAME
xtsession - generate new key field by the specified condition

SYNOPSIS
xtsession [-k a list of key attributes] [-s a list of atributes to be rearranged[%{n|r}]] -f a list of attributes -v identification string [-C] -a name of a new attribute [-q] [-i input filename] [-o output filename] [-z] [-t] [-T directory of work file]

DESCRIPTION
Increment the number if the value of an attribute specified by -f matches the character string specified by -v and output the number as a new attribute.

PARAMETERS

-k a list of key attributes
    specify key attributes that gives a unit of clearing session number

-s a list of atributes to be rearranged
    this determines the ordering of records for those having the same key value

-f a list of attributes
    attributes where character stirng indicating the end of session is given

-v identification string
    If the value of an attribute specified by -f matches the character string specified here, the end of session is identified

-a name of a new attribute
    name of a new attribute

-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

-C  increment a number by one if identification string appears: If this option is specified, the current line number is incremented when the specification string appears (without this option the line number [of the next line is incremented

-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

 xtsession -k customerID -f flag -v 1 -a session number -i dat.xt -o rsl.xt

SEE ALSO
xtsel(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