This is another "note to self" post. I needed to perform a bulk find and replace today. Sed is awesome for the task. Code below:
find . -name '*.module' -exec sed -i "" 's/oldprefix_/newprefix_/g' {} \;
The code above will find all files with a name of .module and replace the text oldprefix_ with the text newprefix_. This code is specific for OSX as it requires the blank extension arg "", when using sed with -i.