Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Download files using curl.
# Description : Download files using curl.
echo "Enter the name of your flat file: "
read input_variable
echo "You entered: $input_variable"
#create urls variable array
declare urls=( `cat "$input_variable" `)
#Download files from URL list
for m in "${urls[@]}"
do curl -O "$m"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.