How to use curl commnsf to download from url list file efficiently? or Best way to run curl commnsf t

20 Replies, 2225 Views

Pro tip: Use `-L` with curl to follow redirects and `-f` to fail silently if the URL’s busted.

For curl commnsf to download from url list file, this one-liner’s clean:

`cat urls.txt | xargs -P 5 -I {} curl -LOf {}`

The `-P 5` runs 5 parallel downloads.

Messages In This Thread



Users browsing this thread: 1 Guest(s)