Skip to content

Instantly share code, notes, and snippets.

@naoty
Created December 27, 2011 05:42
Show Gist options
  • Save naoty/1522814 to your computer and use it in GitHub Desktop.
Save naoty/1522814 to your computer and use it in GitHub Desktop.
url = "http://ftp.vim.org/pub/vim/runtime/indent/"
html = `curl #{url}`
hrefs = html.scan(/href="(.*vim)"/).flatten
hrefs.each {|href| `wget #{url}#{href}` }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment