egrep — Search a File for a Pattern, Using Full Regular Expressions

Synopsis

/usr/bin/egrep [-bchilnsv] [-e pattern-list] [-f file] 
  [strings] [file...] 
/usr/xpg4/bin/egrep [-bchilnsvx] [-e pattern-list] 
  [-f file] [strings] [file...] 

Description

The egrep (expression grep) command searches files for a pattern of characters and prints all lines that contain that pattern. egrep uses full regular expressions (expressions that have string values that use the full set of alphanumeric and special characters) to match the patterns. It uses a fast deterministic algorithm that sometimes needs exponential space.

If you specify no files, egrep assumes standard input. Normally, each line found is copied to the standard output. The file name is printed ...

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.