Implement grep -x

This commit is contained in:
sin
2014-11-20 14:47:26 +00:00
parent e34ce44192
commit 7627a5069c
2 changed files with 25 additions and 4 deletions

6
grep.1
View File

@@ -3,7 +3,7 @@
grep \- search files for a pattern
.SH SYNOPSIS
.B grep
.RB [ \-EFHchilnqsv ]
.RB [ \-EFHchilnqsvx ]
.RB [ \-e
.I pattern ]
.I pattern
@@ -64,5 +64,9 @@ Suppress the error messages ordinarily written for nonexistent or unreadable fil
Selects lines which do
.B not
Match the pattern.
.TP
.B \-x
Consider only input lines that use all characters in the line excluding the terminating <newline> to
match an entire fixed string or regular expression to be matching lines.
.SH SEE ALSO
.IR regex (7)