subtotal(1)

NAME

subtotal - adds subtotal lines to a flat-file

SYNOPSIS

subtotal  [-hVvidolkKsS]

DESCRIPTION
adds subtotal lines to a flat-file

-h  --help
    print this message and exit

-V  --version
    print version info and exit

-v  --verbose
    print verbose messages during execution

-i infile   --input=infile
    name of input file (stdin if not specified)

-d delim   --delim=delim
    input delimiter (ascii 0xfe if not specified)

-o outfile   --output=outfile
    name of output file (stdout if not specified)

-l start_line   --start-line=start_line
    the first line of data - everything before it is printed as-is.

-k key   --key=key
    1-based column number for subtotal key

-K key_label   --key-label=key_label
    label of column for subtotal key

-s sum   --sum=sum
    list of 1-based column numbers to be subtotaled

-S sum_labels   --sum-labels=sum_labels
    list of column labels to be subtotaled

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.