Using Find & Sed to replace a pattern in multiple files…
Posted July 9th, 2007 by Daniel NagleCategories: Personal Notes
Of course this can be altered for use with any file type and regex.
find . -type f -exec sed -i {} -e ’s/pattern1/pattern2/g’ \;
- D.