Skip to content

Instantly share code, notes, and snippets.

@mauricerenck
Last active December 14, 2015 08:09
Show Gist options
  • Save mauricerenck/5056144 to your computer and use it in GitHub Desktop.
Save mauricerenck/5056144 to your computer and use it in GitHub Desktop.
[sh] get current wordpress-version-number
curl -s http://core.svn.wordpress.org/tags/ | awk -F '">' '{print $2}' | awk -F"/<" '{print $1}' | egrep "^[0-9].[0-9]" | sort -n | tail -n 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment