Re: global search and replace

2004-06-16 Thread Jacob S.
On Thu, 17 Jun 2004 08:46:38 +1000 Zenaan Harkness <[EMAIL PROTECTED]> wrote: > What do people use for multi-file/ multi-directory search and replace? > > I use something like this: > > find . -name \*java|xargs perl -p -i.bak -e 's/searchRE/replaceRE/g;' > > However, I would also like to see w

global search and replace

2004-06-16 Thread Zenaan Harkness
What do people use for multi-file/ multi-directory search and replace? I use something like this: find . -name \*java|xargs perl -p -i.bak -e 's/searchRE/replaceRE/g;' However, I would also like to see which files actually got changed. With the in-place option (-i[backup-extension]), every file