aggregate(1)

NAME

aggregate - aggregates data from delimited files

SYNOPSIS

aggregate  [-hVvkKsSaAcCnNxXdprlL] [file ...]

DESCRIPTION
aggregates data from delimited files

-h  --help
    print this message and exit

-V  --version
    print version info and exit

-v  --verbose
    print verbose messages during execution

-k keys   --keys=keys
    cells for aggregation levels & output

-K key_labels   --key-labels=key_labels
    labels of fields for aggregation levels & output

-s sums   --sum-fields=sums
    fields of numeric values to be summed

-S sum_labels   --sum-labels=sum_labels
    labels of numeric fields to be summed

-a averages   --average-fields=averages
    fields of numeric values to be averaged

-A average_labels   --average-labels=average_labels
    labels of numeric fields to be averaged

-c counts   --count-fields=counts
    fields to be counted if non-blank

-C count_labels   --count-label=count_labels
    labels of fields to be counted if non-blank

-n mins   --mins=mins
    report the minimum values at the indexes

-N min_labels   --min-labels=min_labels
    report the minimum values at the labels

-x maxs   --maxs=maxs
    report the maximum values at the indexes

-X max_labels   --max-labels=max_labels
    report the maximum values at the labels

-d delim   --delim=delim
    field separator string (default: 0xfe)

-p  --preserve-header
    specifies that the first line of input should not be included in the aggregation

-r  --no-sort
    specifies that the output need not be sorted.

-l labels   --labels=labels
    delimiter-separated list of labels for the aggregation fields (default: unchanged)

-L  --auto-label
    add "-Sum", "-Count", and "-Average" suffixes to aggregation fields

All column indexes are 1-based.  Either -k or -K must be specified.

The use of label options -K, -S, -A, or -C implies that the header row should be preserved (-p).

AUTHOR

Written by the maintainers and contributers of CRUSH tools.  See
    http://code.google.com/p/crush-tools

REPORTING BUGS

Report bugs to <crush-tools@googlegroups.com>, or visit
    http://groups.google.com/group/crush-tools

COPYRIGHT
   Copyright 2008 Google Inc.
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
       http://www.apache.org/licenses/LICENSE-2.0
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.