Download multiple files
This script reads a file with one link per line and downloads the files
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: $0 <file-with-links-to-download>"
exit 1
else
while IFS= read -r url; do
echo "Downloading link $url"
curl -O "$url"
done < $1
fi
echo "Script finished"
exit 0Last updated