Implement -e support for grep

This commit is contained in:
sin
2013-09-27 16:26:22 +01:00
parent 82bff35228
commit f526ad099f
2 changed files with 100 additions and 38 deletions

9
grep.1
View File

@@ -4,6 +4,8 @@ grep \- search files for a pattern
.SH SYNOPSIS
.B grep
.RB [ \-Ecilnqv ]
.RB [ \-e
.I pattern ]
.I pattern
.RI [ file ...]
.SH DESCRIPTION
@@ -25,6 +27,13 @@ matches using extended regex.
.B \-c
prints only a count of matching lines.
.TP
.B \-e pattern
Specify a pattern used during the search of the input: an input
line is selected if it matches any of the specified patterns.
This option is most useful when multiple -e options are used to
specify multiple patterns, or when a pattern begins with a dash
(`-').
.TP
.B \-i
matches lines case insensitively.
.TP