Support both regexp and invert regexp in same invocation #2175
-
Suppose a text file contains below:
consider this:
Say, I don't want lines that match world, I have to do below:
This requires two
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is a duplicate of #875.
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. |
Beta Was this translation helpful? Give feedback.
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.