You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This flag, when used in conjunction with --count or --count-matches,
will print a result for each file searched even if there were zero
matches in that file. This is off by default but can be enabled to make
ripgrep behave more like grep.
This also clarifies some of the defaults for the
grep-printer::SummaryBuilder type.
Closes#1370, Closes#1405
What version of ripgrep are you using?
ripgrep 11.0.1 (rev 973de50)
How did you install ripgrep?
Github binary release.
What operating system are you using ripgrep on?
Linux.
Describe your question, feature request, or bug.
With
grep -cH needle app.log*
, you get something like:which is visually useful for cases such as "interesting things happened on 25th and 26th, but not on 24th and 27th".
The difference is in the "not on 24th and 27th" part - without
rg
outputting zero counts it's not possible to distinguish between:It might be good to consider a flag to include zero counts as well. IMO it would help with sanity double-checks.
The text was updated successfully, but these errors were encountered: