3 ms·
I was surprised to find that OS X doesn't come with wget, but it does include curl: curl http://72.18.130.89/hackermonthly-issue1.pdf http://72.18.130.89/hacke
by modeless 16y ago
I was surprised to find that OS X doesn't come with wget, but it does include curl:
curl http://72.18.130.89/hackermonthly-issue1.pdf http://72.18.130.89/hackermonthly-issue1.pdf --header 'HOST: hackermonthly.com' > hackermonthly-issue1.pdf
- wwortiz 16y agofor future reference you don't have to use curl like that you can just do curl -O http://72.18.130.89/hackermonthly-issue1.pdf http://72.18.130.89/hackermonthly-issue1.pdf --header 'HOST: hackermonthly.com' to achieve the same result
- modeless 16y agoI figured the command line option existed but why bother looking it up in a man page and then memorizing it when > works perfectly?