Last active
May 9, 2022 07:57
-
-
Save stevenswafford/e5696dd3d2b417955ede to your computer and use it in GitHub Desktop.
Download files using curl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment