Here is a quick tip to help doing search and replace in multiple files. You may need to change to fit your needs.
for file in `ls *.php`
do
sed -e ‘s/Copyright 2008/Copyright 2009/’ “$file” > tmp_file
mv -f tmp_file “$file”
done
What this does is get’s a list of all php files in the current directory, puts them in a loop with a variable called FILE, then does a sed search and replace calling the new file tmp_file and moving the temp file back in place. If you wanted to do it for all files including in subdirectories, you could substitute:
ls *.php
with:
find ./ -name “*.php”
