Created
March 20, 2015 12:55
-
-
Save bborysenko/18c1ea10100ed7b73471 to your computer and use it in GitHub Desktop.
A simple bash script to download files from fs.to
This file contains 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
#!/usr/bin/env bash | |
list=$1 | |
DOWNLOAD=${1%%.*} | |
dos2unix $list | |
test -e $DOWNLOAD || mkdir -p $DOWNLOAD | |
while read url; do | |
wget -P ${DOWNLOAD} ${url} | |
done < $list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment