Skip to content

Return the matched line and nothing else? #2427

Answered by chadbaldwin
chadbaldwin asked this question in Q&A
Discussion options

You must be logged in to vote

Ah! I just realized that if I pipe the output to another command in PowerShell, that most of the extra "junk" gets stripped out anyway 🤦‍♂️

rg -I 'foo,bar,baz' | Write-Host

So that gets me exactly what I wanted.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BurntSushi
Comment options

Answer selected by chadbaldwin
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