Skip to content

Instantly share code, notes, and snippets.

@dgmike
Created June 18, 2012 17:59
Show Gist options
  • Save dgmike/2949726 to your computer and use it in GitHub Desktop.
Save dgmike/2949726 to your computer and use it in GitHub Desktop.
Pega a ultima versao do WordPress pt-Br e descompacta
#!/bin/bash
# requires lynx,grep,awk,uniq,sort,egrep,head,xargs,wget,tar adn rm
lynx -dump http://br.wordpress.org/releases | /bin/grep "\.tar\.gz$" | awk -F'http://' '{ print "http://"$2 }' | uniq | sort -r | /bin/egrep -v 'RC|beta' | head -n1 | xargs wget -O wordpress-br.tar.gz
tar -xvf wordpress-br.tar.gz
/bin/rm wordpress-br.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment