Skip to content

Add example for downloading a list of URLs from a file #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samueloph
Copy link
Collaborator

I haven't thoroughly tested this and checked for corner cases yet, but does it make sense to document this usecase in the manpage?

Pending:

  • Check corner cases, e.g.: whitespaces, carriage return, breaklines, tabs...
  • Check non GNU/Linux portability.

@samueloph samueloph requested a review from sergiodj August 13, 2025 17:52
@bagder
Copy link
Member

bagder commented Aug 13, 2025

curl has native support from downloading a "URL list" with --url @file. I could be worth looking at what it would take for wcurl to offer that too.

@sergiodj
Copy link
Collaborator

I haven't thoroughly tested this and checked for corner cases yet, but does it make sense to document this usecase in the manpage?

I think this is more a shell script example than a wcurl example, TBH. The way wcurl is being invoked is exactly the same as you would do with a single URL, so there's nothing new for the user here (except how to make a loop in their shell, if they don't know yet).


```sh
while read -r url; do wcurl "$url"; done < filename.txt
```
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an extra space before the backticks, there should be two :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants