Created
December 4, 2015 02:56
-
-
Save QuentinMoss/38cee6c8287c8b2e291b to your computer and use it in GitHub Desktop.
Locate and sort all WordPress installations by version
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Obviously requires locate. Swap locate with find on RHEL, or.. | |
# yum install -y -q bash-completion finger mlocate && . /etc/bash_completion && updatedb & | |
locate wp-includes/version.php | xargs grep -H "wp_version.*=" | sort -k 3 | awk '{print $3 " " $1}' | sed -e "s/:.*//" -e "s#/wp-includes.*##" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment