Quantcast
Channel: List files where searched term occurs more than a Threshold - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 3

List files where searched term occurs more than a Threshold

$
0
0

I have a command like

rga --files-with-matches --count-matches --sort path -i -e "use cases?" -e "user stor(y|ies)" -e "Technical debt" -e "Code Quality" -e "software development" -e "Agile Manifesto"

The output is like

a1.pdf:18a2.pdf:10a3.pdf:14....

Here, :NUM is number of matches.

I want all files who have more than 10 matches (without the colon and number, so that I can pipe the output to another command). Like:

a1.pdfa3.pdf....

I tried .. | cut -d':' -f2 but it only give the number. .. | cut -d':' -f1 only gives the file name.

What might be the solution here?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>