The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

fgrep - search a file for a fixed-string pattern (LEGACY)

 SYNOPSIS



fgrep [ -c| -l][-invx] -e pattern_list [file...]

fgrep [ -c| -l][-invx] -f pattern_list [file...]

fgrep [ -c| -l][-invx] pattern_list [file...]

 DESCRIPTION

The name fgrep is an obsolescent version equivalent to grep -F.

A command invoking the fgrep utility with the -e option specified is equivalent to the command:


grep -F [ -c| -l][-invx] -e pattern_list [file...]

A command invoking the fgrep utility with the -f option specified is equivalent to the command:


grep -F [ -c| -l][-invx] -f pattern_list [file...]

A command invoking the fgrep utility with neither the -e nor the -f option operand specified is equivalent to the command:


grep -F [ -c| -l][-invx] pattern_list [file...]

 OPTIONS

Refer to grep.

 OPERANDS

Refer to grep.

 STDIN

Refer to grep.

 INPUT FILES

Refer to grep.

 ENVIRONMENT VARIABLES

Refer to grep.

 ASYNCHRONOUS EVENTS

Refer to grep.

 STDOUT

Refer to grep.

 STDERR

Refer to grep.

 OUTPUT FILES

Refer to grep.

 EXTENDED DESCRIPTION

Refer to grep.

 EXIT STATUS

Refer to grep.

 CONSEQUENCES OF ERRORS

Refer to grep.

 APPLICATION USAGE

Unlike grep -F, multiple -e or -f options produce undefined results. Adjacent newline characters in the pattern operand or -e pattern_list option-argument also produce undefined results.

Applications should migrate to the grep -F command.

 EXAMPLES

Refer to grep.

 FUTURE DIRECTIONS

Refer to grep.

 SEE ALSO

grep.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]