Skip to content

Instantly share code, notes, and snippets.

@mchelen
Created June 25, 2010 06:52
Show Gist options
  • Save mchelen/452532 to your computer and use it in GitHub Desktop.
Save mchelen/452532 to your computer and use it in GitHub Desktop.
for I in A-B C-H I-N O-Z;
do
curfile=articles.$I.tar.gz
cururl=ftp://$ftp/$ftppath/$curfile
echo "Downloading $cururl to $tempdir"
# download file to temporary directory
wget -P $tempdir $cururl
# use up to 5 concurrent connections
# aria2c -d $tempdir -s 5 $cururl
echo "Exctracting $tempdir/$curfile to $filedir"
tar -C $filedir --totals -xzf $tempdir/$curfile
echo Done extracting $tempdir/$curfile
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment