should ripgrep use :
instead of -
for separating file paths from matches when --no-heading
is used?
#2423
-
EDIT: Never mind, --field-context-separator is fine. As @BurntSushi says, if contextual options are used (which I suppose is my case), then - is used just like in grep, so I'm mistaken. I was thinking if I stumbled across this switching from grep to rg in an fzf script and was a little confused with the output since it looked like the beginning of the matching lines was part of the filename until I turned color on. In the script, I want to retrieve the filename of the matching line and it would be much easier to awk it with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Never mind, |
Beta Was this translation helpful? Give feedback.
-
Why not show an example? :-) For example, it seems like an implicit assumption in your question it that ripgrep uses
Of course, if you add contextual options, then contextual lines use
|
Beta Was this translation helpful? Give feedback.
Why not show an example? :-) For example, it seems like an implicit assumption in your question it that ripgrep uses
-
as a delimiter to separate file paths and the matching string, but it actually uses:
, just like grep:Of course, if you add contextual options, then contextual lines use
-
, just like grep: