Small Script to Download Multiple Files in a Sequence

February 15, 2008 on 6:56 pm | In Techspeak |

Here’s a small script I wrote to download all fifteen issues of INSECURE magazine. You can easily adapt this to download anything you like, magazines, podcasts, etc., as long as they are in a known sequence.

#!/bin/sh
for i in $(seq 1 15)
do
`wget http://www.net-security.org/dl/insecure/INSECURE-Mag-$i.pdf &`;
done;

To download all episodes of Security Now, just change the end of the sequence to be 131 instead of 15, and change the URL to:
http://media.grc.com/sn/SN-$i.mp3

To get all episodes of Pauldotcom Security Weekly, use a high value of 97, and a URL of
http://media.libsyn.com/media/pauldotcom/pauldotcom-SW-episode$i.mp3

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • blogmarks
  • BlogMemes
  • Reddit
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Slashdot

No Comments yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^

Bad Behavior has blocked 290 access attempts in the last 7 days.