m0n0lithic

Downloading PDF Issues (eg. 19 to 02) from Linux-Magazine.Es

Sep 14th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/bin/bash
  2. dias=('19' '18' '17' '16' '15' '14' '13' '12' '11' '10' '09' '08' '07' '06' '05' '04' '03' '02')
  3. for (( COUNT=0; COUNT<18; COUNT++ )) ; do
  4.         echo "cd ${dias[$COUNT]}"
  5.         cd ${dias[$COUNT]}
  6.         wget -r -nd -np -l1 -A '*.pdf' http://www.linux-magazine.es/issue/${dias[$COUNT]}/
  7.         cd ..
  8. done
Add Comment
Please, Sign In to add comment