This file contains hidden or 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
#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 |
NewerOlder