Interactive search and replace from shell

find, replace, shell

Solution

KISS principle:

vim
:args `ls`
:argdo %s#SEARCH#REPLACE#gec |update

First character afer %s is used as separator

Problem

Search and replace over multiple files is difficult in my editor. There are plenty of tricks that can be done with `find`, `xargs` and `sed`/`awk` incluing search-and replace in multiple files. But somehow I couldn't find a way to make this interactive. Do you know a way to do that?

Original source

Related problems