Skip to content

Instantly share code, notes, and snippets.

Created February 23, 2015 07:55
What would you like to do?
特定のディレクトリ ( /var/www/vhosts ) 以下のサブディレクトリにインストールされている WordPress の一覧を取得する
find /var/www/vhosts/ -maxdepth 2 -type f -name wp-config.php | while read thisfile; do
echo "***** ${wp_path}"
wp_version=`wp --path=${wp_path} core version`
wp_home=`wp --path=${wp_path} eval "echo home_url();"`
echo "${wp_home} : ${wp_version}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment