Skip to content

Instantly share code, notes, and snippets.

@acoffman
acoffman / file_downloader.rb
Created September 10, 2008 03:40
Really basic script for downloading a file from the web and saving it to a specified location.
#ruby script to download a file from the command line given a url
#
#works with two arguments:
#argument 1 is the path to the file, you can leave
#the http on or remove it, the script handles both
#
#second argument is the name of the file as you want it to be saved on disk
#i.e. download.zip
#
#KNOWN BUG: will not work given an IP instead of a url