Skip to content

Instantly share code, notes, and snippets.

Created Aug 25, 2021
What would you like to do?
Bash script to download a list of URLs
# usage:
# chmod +x
# pbpaste |
# cat inputfile.txt |
# thanks to
while read -r full_url
echo "downloading ${full_url}"
curl "$full_url" --output $(basename ${full_url})
done < "${1:-/dev/stdin}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment