How do I fix this command so --context-separator adds my newlines to output file? #2268
-
This command is sending matches to the output file without newlines. Does anyone know how I can fix it?
Edit:
Upon more testing, --context-separator only seem to work when combined with -A -B This doesn't add newlines to outfile This does add newlines to outfile |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Could you please minimize it down to just an Also, why are you setting |
Beta Was this translation helpful? Give feedback.
-
Apologies, but I think your question is just totally unclear. I would suggest that you try to outline the problem you're trying to solve. For example, it looks like you are confused about what
Also:
You heard correctly, and indeed, it is sometimes true. But that's for To be fully clear here: setting More generally, I'd suggest you not just add stuff like |
Beta Was this translation helpful? Give feedback.
Apologies, but I think your question is just totally unclear. I would suggest that you try to outline the problem you're trying to solve.
For example, it looks like you are confused about what
--context-separator
is. Namely, you say, "--context-separator only seem to work when combined with -A -B." But this is confusing to me, because of course it only works with-A
and-B
. That's exactly what it is documented to do. Maybe you haven't read the docs here?