diff options
author | Andrew Gallant <jamslam@gmail.com> | 2016-11-06 13:09:53 -0500 |
---|---|---|
committer | Andrew Gallant <jamslam@gmail.com> | 2016-11-06 13:09:53 -0500 |
commit | 58aca2efb24801b43870acac5b40c59fbc9ef350 (patch) | |
tree | fbb20a095b7cfad4d9c2baef86a8073097ec0299 /doc | |
parent | 351eddc17e3f7164978c2f001ff9b8e3bc328e33 (diff) |
Add -m/--max-count flag.
This flag limits the number of matches printed *per file*.
Closes #159
Diffstat (limited to 'doc')
-rw-r--r-- | doc/rg.1 | 5 | ||||
-rw-r--r-- | doc/rg.1.md | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -207,6 +207,11 @@ Follow symlinks. .RS .RE .TP +.B \-m, \-\-max\-count NUM +Limit the number of matching lines per file searched to NUM. +.RS +.RE +.TP .B \-\-maxdepth \f[I]NUM\f[] Descend at most NUM directories below the command line arguments. A value of zero searches only the starting\-points themselves. diff --git a/doc/rg.1.md b/doc/rg.1.md index 67b3c33c..e2f42e73 100644 --- a/doc/rg.1.md +++ b/doc/rg.1.md @@ -135,6 +135,9 @@ Project home page: https://github.com/BurntSushi/ripgrep -L, --follow : Follow symlinks. +-m, --max-count NUM +: Limit the number of matching lines per file searched to NUM. + --maxdepth *NUM* : Descend at most NUM directories below the command line arguments. A value of zero searches only the starting-points themselves. |