How to find/download latest drupal version via bash? I'm trying to pull up the latest Drupal release, and download it via a bash script.

I don't have any idea on how I can do that, except that I found out I can list the files on the FTP server, and get all the filenames containing Drupal, like so:

lynx --dump http://ftp.drupal.org/files/projects/ | awk '/http/{print $2}' | grep drupal-7 &gt; latest.txt


How I can pull the latest version from that list, and download it?
For all your command line and script needs there is Drush. To download the latest Drupal 7 with it, you simply do

drush pm-download drupal