-
-
Save pedrorvidal/8828504 to your computer and use it in GitHub Desktop.
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
#!/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