Si te gusta la revista FullCircle y quieres descargar algún número que te falte, puedes utilizar el siguiente script.
#!/bin/bash echo -n "What is the issue number of the first Full Circle Magazine to download? " read firstissue echo "" echo -n "What is the issue number of the last Full Circle Magazine to download? ( > or = the previous number) " read lastissue cd ~/Desktop # ~ brings you to the home directory of the user and from there I wanted to use my folder 'Desktop' for a in `seq $firstissue $lastissue` do wget -U Mozilla "http://dl.fullcirclemagazine.org/issue"$a"_en.pdf" done echo "" echo "Complete!"
Cabe destacar que podríamos modificar la url de descarga con wget para obtener los números en español:
Linea 16: “http://dl.fullcirclemagazine.org/issue”$a”_en.pdf”
Por:
Linea 16: “http://dl.fullcirclemagazine.org/issue”$a”_es.pdf”
Saludos.
nice script, i like shell scripting!
Ojo con copiar y pegar el código… la línea 12 es la continuación del comentario de la línea anterior, y no una nueva línea, como se muestra acá.
Saludos atentos