You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please add a -i / --in-place option (like in sed) to edit files in place. I'd really like to use ripgrep for find and replace across code bases, since it's so fast, but currently it requires some pretty difficult work-arounds to accomplish the desired behavior.
Ex: for a single file I do this to replace all instances of blue with red in file ip.txt:
ElectricRCAircraftGuy
changed the title
Feature Request: add -i option for "in place" find and replace
Feature Request: add option for "in place" find and replace
Jan 2, 2022
Describe your feature request
Please add a
-i
/--in-place
option (like insed
) to edit files in place. I'd really like to use ripgrep for find and replace across code bases, since it's so fast, but currently it requires some pretty difficult work-arounds to accomplish the desired behavior.Ex: for a single file I do this to replace all instances of
blue
withred
in fileip.txt
:...but when trying to find across many files, this becomes much much harder, and I must first obtain a file list with
rg -l
then operate on that.The text was updated successfully, but these errors were encountered: