pivot(1)

NAME

pivot - pivots flat-file data from rows to columns

SYNOPSIS

pivot  [-hVdkfFpPvA] [file ...]

DESCRIPTION
pivots flat-file data from rows to columns

-h  --help
    print this message and exit

-V  --version
    print version info and exit

-d delim   --delimiter=delim
    field separator string

-k  --keep-header
    indicates that the first line of input should be treated as header info

-f keys   --output-fields=keys
    indexes of row fields to output

-F key_labels   --output-labels=key_labels
    labels of row fields to output

-p pivots   --pivot-fields=pivots
    indexes of column fields to pivot on

-P pivot_labels   --pivot-labels=pivot_labels
    labels of column fields to pivot on

-v values   --value-fields=values
    indexes of data fields to put into the pivoted cells

-A value_labels   --value-labels=value_labels
    labels of data fields to put into the pivoted cells

-f, -p, and -v values are comma-separated numbers or ranges.  for example:

1,2-5,7

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.