add_field(1)

NAME

add_field - adds a field to a string-delimited log file.

SYNOPSIS

add_field  [-hdfBAlvc] [file ...]

DESCRIPTION
adds a field to a string-delimited log file.

-h  --help
    print this message and exit

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

-f field   --field=field
    the 1-based index for the new field (default: 1)

-B before   --Before=before
    place the new field before the field with the specified label

-A after   --After=after
    place the new field after the field with the specified label

-l label   --label=label
    specifies the first-line label for the new field

-v value   --value=value
    the value to place in the new field (default: emtpy)

-c copy   --copy=copy
    specifies an existing field to copy into the new field

* if no "label" is provided, the "value" will be used.
     * for -f, a value of either 0 or 1 may be used to indicate the first position.
     * for -f, a value of -1 indicates that the field should be appended to each line.
     * if both -v and -c are specified, -c takes precedence.

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.