@elirnm I believe you could just use the tee command?
$ rg blah blah | tee >(wc -l)
match
match
match
3
If you want to remove that tab before the output, you can do this:
$ rg blah blah | tee >(wc -l | xargs echo)
Way to report total count of matches? · Issue #411 · BurntSushi/ripgrep · GitHub https://github.com/BurntSushi/ripgrep/issues/411
No comments:
Post a Comment