Skip to content

Instantly share code, notes, and snippets.

@pedrorvidal
Forked from dgmike/wordpres-br.sh
Created February 5, 2014 17:09
Show Gist options
  • Save pedrorvidal/8828504 to your computer and use it in GitHub Desktop.
Save pedrorvidal/8828504 to your computer and use it in GitHub Desktop.
#!/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