Skip to content

Support both regexp and invert regexp in same invocation #2175

Answered by BurntSushi
balki asked this question in General
Discussion options

You must be logged in to vote

This is a duplicate of #875.

rg foo | rg -v bar is otherwise the intended solution. In general, "losing colors and formatting" is not something I can allow to justify eschewing the utility of shell pipelines in all cases. So I don't know if #875 will ever happen.

Running ripgrep multiple times should in general be a non-issue. At least, I do not consider multiple invocations in and of itself a downside.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@balki
Comment options

@BurntSushi
Comment options

Answer selected by BurntSushi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants