Friday, October 18, 2013

Download from list using curl in shell/terminal

So, I had to get data from a text file with the list of url.
I saved the url (one per line) in a txt file. Then executed the command
-O saves teh given name in the server. -L gracefully handles redirects if any.

xargs -n 1 curl -O -L < urls.txt

No comments: