SED – Search & Replace By leerb on December 12, 2012 in Misc Always handy to have sed in your bag of tricks: sed -i 's/fromtext/totext/g' /path/to/my/file 1 sed -i 's/fromtext/totext/g' /path/to/my/file Related posts: SED Search / Replace Multiple Files Block access to .svn folders Find All WordPress Instances On A Server