What's the best curl command to download from a URL list file? or How do I use the curl command to do

14 Replies, 1161 Views

If you’re on macOS or Linux, this one-liner works like a charm:

```bash
cat urls.txt | xargs -I % curl -O %
```

The `-I %` lets you handle weird chars in URLs better.

Also, if you wanna log errors, toss in `-f` to fail silently and redirect errors to a file. Handy for big batches.

Messages In This Thread



Users browsing this thread: 3 Guest(s)