October 2001
Intermediate to advanced
1040 pages
22h 50m
English
egrep [ –bchilnsv ] [ –e special–expression ][ –f filename ][ strings ] [ filename ... ]
egrep (expression grep) searches files for a pattern of characters and prints all lines that contain that pattern. egrep uses full regular expressions (expressions with string values that use the full set of alphanumeric and special characters) to match the patterns.
1 egrep 'Tom|John' datafile 2 egrep '^ [A-Z]+' file |
EXPLANATION
|
Read now
Unlock full access