this is what i have so far it doesn't work yet
the site should be the http link (e.g for http://www.archive.org/details/ball_and ... 1_librivox use http://ia600408.us.archive.org/2/items/ ... _librivox/)
Code: Select all
rm -f ./index.html
rm -f ./sindex.html
echo 'please type name of site'
read SITE
FN=$(basename $SITE )
wget $SITE -O ./index.html
echo 'please type file extension'
read EXT
grep .$EXT ./index.html | cut -d "\"" -f 2 > ./itemnames
chmod a+wrx ./itemnames
cat ./itemnames | parallel -i -- "mkdir -p -m 777 ./$FN/{} wget -O -B $SITE -i {} >> ./$FN/{}"
rm ./index.html
rm ./itemnames
anyone know what's wrong with it?