August 2008
Search and Replace The Command Line Way
Submitted by mmorsi on Fri, 2008-08-01 03:31find ./ -name *.extension -exec sed -i 's/find/replace/g' {} \;
Replace extension of the extension of the files you want to search in (or use any other regex)
Replace find with what your looking for
Replace replace with what you want to replace your query with.
Warning there is no undo and if your not using revision control or have backups you can seriously mess things up.





