Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?
ripgrep 15.1.0
How did you install ripgrep?
Homebrew
What operating system are you using ripgrep on?
macOS 26.3.1
Describe your bug.
Unable to replace text in Markdown files with rg '### NIC' --files-with-matches -0 | xargs -0 sed -i 's/### NIC/### DNS/g. Error sed: 1: "File.md": invalid command code T
What are the steps to reproduce the behavior?
rg '### NIC' --files-with-matches -0 | xargs -0 sed -i 's/### NIC/### DNS/g on markdown files
What is the actual behavior?
error
What is the expected behavior?
NIC replaced with DNS
Please tick this box to confirm you have reviewed the above.
What version of ripgrep are you using?
ripgrep 15.1.0
How did you install ripgrep?
Homebrew
What operating system are you using ripgrep on?
macOS 26.3.1
Describe your bug.
Unable to replace text in Markdown files with
rg '### NIC' --files-with-matches -0 | xargs -0 sed -i 's/### NIC/### DNS/g. Errorsed: 1: "File.md": invalid command code TWhat are the steps to reproduce the behavior?
rg '### NIC' --files-with-matches -0 | xargs -0 sed -i 's/### NIC/### DNS/gon markdown filesWhat is the actual behavior?
error
What is the expected behavior?
NIC replaced with DNS