Stop after first match is found with --quiet.

Fixes #77.
This commit is contained in:
Andrew Gallant
2016-09-25 15:01:27 -04:00
parent 95edcd4d3a
commit 9dc5464c84
6 changed files with 13 additions and 4 deletions

View File

@@ -91,6 +91,7 @@ Suppress line numbers.
.TP
.B \-q, \-\-quiet
Do not print anything to stdout.
If a match is found in a file, stop searching that file.
.RS
.RE
.TP

View File

@@ -61,7 +61,8 @@ the raw speed of grep.
: Suppress line numbers.
-q, --quiet
: Do not print anything to stdout.
: Do not print anything to stdout. If a match is found in a file, stop
searching that file.
-r, --replace *ARG*
: Replace every match with the string given. Capture group indices (e.g., $5)