This drush plugin performs a text search & replace on all content and content revisions in all text fields and all custom blocks on a Drupal site.

It does this directly in the database, not by loading, editing and then saving entities, so it is very fast. This also means you should clear the Drupal caches after you run this command.

An example use case is to update all embedded file paths from sites/ to sites/

drush sar sites/ sites/

The plugin prints statistics about the entities, nodes, fields and blocks it has processed.


Version 7.x-1.0 is stable and supports both Drupal 6 with CCK and Drupal 7 with FieldAPI.


New features will be added to the 7.x-2.x branch only.

In browser

If you don't have shell access or drush, perhaps the module can help you out instead.

Supporting organizations: 

Project information