A script to search and replace a WordPress database, including serialized strings. Especially useful for changing hardcoded domains in the database.
The script needs to be made exucutable, eg chmod +x wp_search_replace.sh
USAGE: wp_search_replace.sh old_domain.com new_domain.com