DEV Community

loading...

Discussion on: Deceptively simple search-and-replace across multiple files

Collapse
dmerejkowsky profile image
Dimitri Merejkowsky

I wrote a command-line tool with this purpose I think you would enjoy.

It's called ruplacer and here's how it works:

$ ruplacer old new src/
Patching src/a_dir/sub/foo.txt
-- old is everywhere, old is old
++ new is everywhere, new is new

Patching src/top.txt
-- old is nice
++ new is nice
Forem Open with the Forem app