Re: wget mp3 files?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Alan Dayley
Date:  
To: Main PLUG discussion list
Subject: Re: wget mp3 files?
Kevin Brown wrote:
>
> save the index page
> grep for the mp3 links
> search and replace all text leading up to the url and after the url
> sed -e 's/^.*<a href="//g;s/".*$//g'
> resulting lines should just be the urls
> for p in `cat file`
> do
> wget $p
> done
>
> grep and sed can be used in conjunction by piping one into the other
> grep "<a href" index | sed.... > file


OK this is cool!

I now have a file with just the mp3 URLs in it, one per line. However,
that 'for' loop you show will not run for me. It puts the 'cat' and
'file' strings one at a time in two wget commands. What shell should I
use for it to work right? I pointed it at bash with '#!/bin/bash'

Alan
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss