Skip to content

Only files who match all the words #2441

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

You must be logged in to vote

Probably what I would do is something like rg foo -l | xargs rg bar -l | xargs rg quux -l.

Otherwise, ripgrep doesn't currently support arbitrary boolean expressions. The typical way to find matching lines containing foo, bar and quux is with a shell pipeline: rg foo | rg bar | rg quux.

See: #875

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