Skip to content

Instantly share code, notes, and snippets.

@bborysenko
Created March 20, 2015 12:55
Show Gist options
  • Save bborysenko/18c1ea10100ed7b73471 to your computer and use it in GitHub Desktop.
Save bborysenko/18c1ea10100ed7b73471 to your computer and use it in GitHub Desktop.
A simple bash script to download files from fs.to
#!/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