79298041

Date: 2024-12-20 18:01:52
Score: 1
Natty:
Report link

Expanding on @Chad Baldwin's answer. On Mac you'll soon reach the shell argument limit. Use xargs to resolve this:

$ rg -l "my first match" | xargs rg "my second match"

If you want to find N matches:

$ rg -l "my first match" | xargs rg -l "my second match" | ... | xargs rg "my final match"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Chad
Posted by: Jack