ripgrep 0.10.0
-SIMD -AVX (compiled)
+SIMD +AVX (runtime)
I install ripgrep from the arch official repos.
Arch Linux
When I execute the following command, the file path, line number, contents are displayed in a colon delimiter.
$ rg --no-heading --line-number .
test.txt:1:hogehoge
test.txt:2:fugafuga
test.txt:3:piyopiyo
I'd like to change the delimiter to anything.
Replacing by sed will fail if the file path contains some colons.
So I want to specify an other delimiter character in ripgrep.
Thank you.
Replacing by sed will fail if the file path contains some colons.
So I want to specify an other delimiter character in ripgrep.
This is basically what the -0/--null flag is for, because the NUL byte is the only byte that is illegal in a file path on Unix.
Otherwise, if you need a more structured format for parsing, you might consider using --json.
-0/--null is exactly what I needed!
Thank you very much!
Most helpful comment
This is basically what the
-0/--nullflag is for, because the NUL byte is the only byte that is illegal in a file path on Unix.Otherwise, if you need a more structured format for parsing, you might consider using
--json.