Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- read -p "What is the filename prefix? (Eg: \"part_\") Type it and press [ENTER]:" filePrefix
- read -p "Up to what XX? (Eg: \"11\") Type it and press [ENTER]:" xMax
- read -p "Up to what YY? (Eg: \"5\") Type it and press [ENTER]:" yMax
- read -p "What folder to save it in?" folderName
- xxMax=$xMax
- yyMax=$yMax
- for xx in $(eval echo "{00..$xxMax}")
- do
- for yy in $(eval echo "{00..$yyMax}")
- do wget http://home.nith.no/~raakje/$filePrefix$xx-$yy -q -P ./$folderName && echo part_$xx-$yy downloaded || echo part_$xx-$yy failed;
- done
- done
- #for XX in {00..$xMax};
- #do for YY in {00..$yMax};
- # do wget http://home.nith.no/~raakje/$filePrefix$XX-$YY -P ./downloadfolder && echo part_$XX-$YY success || echo part_$XX-$YY failure;
- #done;
- #done
- #for XX in {00..11}; do for YY in {00..05}; do wget http://home.nith.no/~raakje/part_$XX-$YY -c -q -P ./downloadfolder && echo part_$XX-$YY downloaded || echo part_$XX-$YY failure; done; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement