A really nice module to help you do this is [Search and Replace Scanner][1] Or if you prefer something simpler (as a drush command) without the interface you could use [Drush Search & Replace][2] [1]: https://www.drupal.org/project/scanner [2]: https://www.drupal.org/project/sar