GIST: Download PHRACK Archives

#!/bin/bash

for i in {1..11}
do
    echo "Downloading... http://www.textfiles.com/magazines/PHRACK/PHRACK$i"

    phrack="PHRACK"

       if [ $i -lt 10 ]
       then
        phrack="$phrack-$i"
       else
           phrack="$phrack$i"
       fi

       #wget "http://www.textfiles.com/magazines/PHRACK/$phrack"
       curl "http://www.textfiles.com/magazines/PHRACK/$phrack" -o "$phrack"

done