I love Drush. It makes managing my Drupal multisite installs much less complicated. I used to write custom scripts to loop through all the sites an perform actions but this little bit of code has made my maintenance tasks so much simpler.


for SITE in `ls /path/to/drupal/sites | grep "\."`;
do
/path/to/drush --uri=$SITE --root=/path/to/drupal --yes updatedb
done