Archive for July, 2007

Using Find & Sed to replace a pattern in multiple files…

Monday, July 9th, 2007

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.