Skip to content

List Files Where Matches in Above a Threashhold #2440

Answered by BurntSushi
blueray453 asked this question in Q&A
Discussion options

You must be logged in to vote

I would use awk to post-process your output. For example, from the root of the ripgrep repo:

$ rg 'is_empty' -lc | awk -F: '$2 > 10 { print $1 }'
crates/globset/src/lib.rs
crates/searcher/src/line_buffer.rs
crates/printer/src/standard.rs

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by blueray453
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants