Using xargs and curl to request URLs from a list

Just some simple bash stuff that I keep forgetting

cat list-of-urls-without-hostnames.txt | xargs -i curl -v -L{}

where “list-of-urls-without-hostnames.txt” contains a list of URL paths, like:


Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.