grepfield(1)

NAME

grepfield - looks for patterns within a specific field of a flat-file

SYNOPSIS

grepfield  [-hVdofFvip] <pattern> [file ...]

DESCRIPTION
looks for patterns within a specific field of a flat-file

-h  --help
    print this message and exit

-V  --version
    print version info and exit

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

-o outfile   --outfile=outfile
    output file name (default: stdout)

-f field   --field=field
    index of field to scan (1-based)

-F field_label   --field-label=field_label
    label of field to scan (1-based)

-v  --invert
    print only non-matching lines

-i  --ignore-case
    do case-insensitive matches

-p  --preserve_header
    preserve the header line of the first file and discard all other headers.

if no field is specified, the entire input line is scanned.

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.