On Tue, Aug 02, 2011 at 10:29:44AM +1000, Sonia Hamilton wrote:
> For example, I want to replace "def fubar" with "def snafu" across 50
> files.

perl -p -i -e 's/def fubar/def snafu/g' *

> I then want to close all the files that didn't have changes, so I
> can investigate the changed files in more detail (yes, I'm refactoring).

git diff

If you are not using SCM (or git in particular), then you should be.

Nick.
-- 
PGP Key ID = 0x418487E7                      http://www.nick-andrew.net/
PGP Key fingerprint = B3ED 6894 8E49 1770 C24A  67E3 6266 6EB9 4184 87E7
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to