Great post! Can anyone provide a little help on bash script basics for me? I’d like to understand what lines 21 and 22 do.

–sites=*)
SITES=”${i#*=}”

I’d like to modify the script to work as intended when used with the –sites option. It fails because I’ve got a server with WP installations each stored in their own directory within a “sites” subdirectory. As an example, here are the paths to wp-config.php in three of the sites:

site1/sites/wp-config.php
site2/sites/wp-config.php
site3/sites/wp-config.php

Thanks!