This post originally featured on the Echo & Co. blog.
In addition to hosting Drupal sites, we also host a number of WordPress sites. Similar to (checking all of our Drupal core versions)[http://echodittolabs.org/blog/2011/01/are-your-drupal-sites-running-latest-core], we needed an easy way to quickly see what versions we are running on all of our WordPress sites. Kudos to Ethan for getting this one kicked off; here is a bash script to check your definable
$WEBHOME (where you deposit all of your WordPress webroots) and scan for WordPress versions.
Note: this requires bash, grep, wc, sed, awk, and tree. If your system doesn’t have tree, it’s usually pretty easy to get from EPEL/Homebrew/apt-get/[mac]ports/etc.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
As a result, you’ll see output like this:
1 2 3 4 5
If you think there’s a better way, or have any questions, let me know in the comments.