I have a simple bash script to download files using curl:
#!/bin/bash while read -r line do # $line will be a variable which contains one line of the input