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, 1174 Views

For a pure curl command to download from url list file, you can use `-K` to read the file directly. Like this:

```bash
curl -K urls.txt
```

But your file needs to have each URL prefixed with `url = ` (e.g., `url = https://example.com/file1`).

If you don’t wanna edit the file, stick with `xargs`. Btw, `wget` also has a `-i` flag for this, if you’re open to alternatives.

Messages In This Thread



Users browsing this thread: 1 Guest(s)