fgrep (target)

Fixed string grep (POSIX, toybox)

Syntax:

fgrep [-bcEFHhilnoqrsvw] [-ABC num] [-m max] [-e regex]...
      [-MS pattern]... [-f regfile] [file]...

Runs on:

QNX OS

Options:

For a complete listing, see grep.

Description:

The fgrep utility does a fixed-string grep (equivalent to grep -F). If there is no -e, the first argument is the regular expression that matches. If you do not specify a file (or filename is a hyphen (-)), fgrep reads from the standard input. It returns 0 if there is a match, 1 if no match is found, and 2 for command errors. See the documentation for grep for details.

This utility is provided as part of the toybox package. For information on how to enable it, see toybox.

Contributing author:

Rob Landley and the toybox project (see https://landley.net/toybox/).

Page updated: