/ Published in: Bash
URL: http://zxeem.wordpress.com
Expand |
Embed | Plain Text
#!/bin/bash #################################################### # Created By Dino # An RFC [ Request for comment ] Files doewnloader. # to run .. # chmod +x rfcDownloader.sh # ./rfcDownloader.sh #################################################### i=0; SLEEP_TIME=5; RFC_MAX=6000; while [ $i -le $RFC_MAX ]; do i=`expr $i + 1` ; if [ $i -le 9 ]; then wget -b -c "http://www.ietf.org/rfc/rfc000$i.txt" & elif [ $i -le 99 ]; then wget -b -c "http://www.ietf.org/rfc/rfc00$i.txt" & elif [ $i -le 999 ]; then wget -b -c "http://www.ietf.org/rfc/rfc0$i.txt" & elif [ $i -le 9999 ]; then wget -b -c "http://www.ietf.org/rfc/rfc$i.txt" & fi sleep $SLEEP_TIME; done
You need to login to post a comment.
