Using Find & Sed to replace a pattern in multiple files…
Monday, July 9th, 2007Of 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.
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.