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

 NAME

egrep - search a file with an ERE pattern (LEGACY)

 SYNOPSIS



egrep [ -c| -l][-inv] -e pattern_list [file...]

egrep [ -c| -l][-inv] -f pattern_list [file...]

egrep [ -c| -l][-inv] pattern_list [file...]

 DESCRIPTION

The name egrep is an obsolescent version equivalent to grep -E.

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


grep -E [ -c| -l][-inv] -e pattern_list [file...]

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


grep -E [ -c| -l][-inv] -f pattern_list [file...]

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


grep -E [ -c| -l][-inv] 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 -E, 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 -E 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 ]