Created
June 25, 2010 06:52
-
-
Save mchelen/452532 to your computer and use it in GitHub Desktop.
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
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