I live in Omaha.
 
Navigation
 
Search
 
Random Image
Ceremony (22)
 
Me. Elsewhere.
 
Archives
 
Darcy
 
Recently Read
 
Things I Like
kohana
 
License
 
Linux Multiple File Search And Replace

This is something I’ve needed to do occasionally and always have to look up. The one I like best is located at this post but I’m going to repeat it here for posterity and so I can find it again easier.

perl -pi -w -e 's/search/replace/g;' *.php

So easy, thats why Perl rocks. Thank you Bob Fulkerson for introducing us.

Other options include the frickin sweet looking ruby app SearchAndReplaceGlobal by the same guy who wrote the editor I first learned to do HTML with, Arachnophilia. I say sweet looking because I never actually got it running. I didn’t try very hard though.

Posted January 21st, 2007 - Permalink
Categories: Geek
Tags: , , ,
You can leave a comment, or trackback from your own site.
 
Possibly Related Posts
 
Adjacent Posts
 
Comments
 
Copyright © 2006 - 2010 John Hobbs
get userping