xtaccum(1)

NAME
xtaccum - accumulation

SYNOPSIS
xtaccum [-k attritute] [-s a list of atributes to be rearranged[%{n|r}]] -f attritute list [-i input filename] [-o output filename] [-z] [-t] [-T directory of work file]

DESCRIPTION
 For each different value of the attribute specified -k, this command calculates the total of the values of each attribute specified by -f.

PARAMETERS

-k attritute
    an attribute list based on which the total is calculated (if omitted, all lines are assumed to take the same key value)

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

-f attritute list
    an attribute list for which the total is calculated

-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

-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

 xtaccum -k customerID -s date -f amount:total -i dat.xt -o rsl.xt

 xtaccum -s date -f amount:total -i dat.xt -o rsl.xt

SEE ALSO
xtagg(1), xtstatistics(1), xtshare(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