Skip to content

Something similar to a sub search #2980

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

You must be logged in to vote

If you have bash, then you either likely have xargs or can get xargs. And if you have xargs, this is pretty easy: rg PATTERN1 -l -0 | xargs -0 rg PATTERN2.

I'm not a powershell user, so I'm not really able to help with that. That's probably a better question for a powershell specific help forum. But beyond #273, I'm unlikely to add any other features here specific to sub searches. ripgrep really is designed to be used in composition with other tools via shell pipelines.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Comment options

You must be logged in to vote
0 replies
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