document updated 14 years ago, on Dec 20, 2010
Tools that do mass search-and-replace.
Requirements:
- can make changes across tens of thousands of files
- can operate in interactive mode (do you want want to make this change: yes/no? how about this one?) as well as fully-automatic mode
- it should use the PCRE engine, if possible, to make it easier for us to use the same pattern across multiple tools
Tools
Vim-based
Vim has vimgrep and an interactive replace feature. Is there any way to combine the two? Yes:
Oops, we suck. All of these require Vim v7.0+, and ours is much older than that.