I\'m on mac OS X and can\'t figure out how to download a file from a URL via the command line. It\'s from a static page so I thought copying the download link and then using
curl -OL https://github.com/jdfwarrior/Workflows.git
-O
: This option used to write the output to a file which named like remote file we get. In this curl that file would be Workflows.git
.
-L
: This option used if the server reports that the requested page has moved to a different location (indicated with a Location: header and a 3XX response code), this option will make curl redo the request on the new place.
Ref: curl man page