It worked for me. Are you doing the quotes correctly? a double quote surrounded by single quotes?<br><br><br><br>' " '<br><br><br><br><br><br><div class="gmail_quote">On Wed, Mar 11, 2009 at 7:51 PM, gordon dunlop <span dir="ltr"><<a href="mailto:astrozubenel@googlemail.com">astrozubenel@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br><div class="gmail_quote">2009/3/11 Nicholas Walker <span dir="ltr"><<a href="mailto:tel0seh@googlemail.com" target="_blank">tel0seh@googlemail.com</a>></span><div class="im">
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I managed to sort out an automated download. Heres what I did.<br><br><br>wget <a href="https://www.defcon.org/podcast/defcon-16-video.rss" target="_blank">https://www.defcon.org/podcast/defcon-16-video.rss</a><br><br>then<br>
<br>cat defcon-16-video.rss | grep .m4v > dump.txt<br><br>then <br><br>cat dump.txt <br>
<p style="margin-bottom: 0in;">cat dump.txt | cut -d '"' -f2 > urls.txt<br></p><p style="margin-bottom: 0in;"></p></blockquote></div><div><font size="4">I tried this but it did not work. Not that I wanted to download all the videos, but I just wanted to see if it worked. I think the problem was trying to use the double quotes as the delimiter. So I re-wrote it, a couple of extra lines, but it works.<br>
<br>cat dump.txt | cut -d= -f2 > cleanup1.txt<br><br>cat cleanup1.txt | cut -d" " -f1 > cleanup2.txt<br><br>sed 's/"//g' cleanup2.txt > urls.txt<br><br>Now do your shell script<br><br>Gordon</font><br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im"><p style="margin-bottom: 0in;">Then using this shell script:</p>
<p style="margin-bottom: 0in;">
<br></p><p style="margin-bottom: 0in;">
#!/bin/sh<br> exec< "urls.txt"<br> value=0<br> while read line<br> do<br> wget $line<br> done<br></p><p style="margin-bottom: 0in;"><br></p><p style="margin-bottom: 0in;"><br></p><p style="margin-bottom: 0in;">
It downloads each of the video files one by one.</p><p style="margin-bottom: 0in;"><br></p><p style="margin-bottom: 0in;"><br></p><p style="margin-bottom: 0in;">Enjoy ^^</p><p style="margin-bottom: 0in;"><br>
</p>
<br></div><div class="im">_______________________________________________<br>
dundee GNU/Linux Users Group mailing list<br>
<a href="mailto:dundee@lists.lug.org.uk" target="_blank">dundee@lists.lug.org.uk</a> <a href="http://dundee.lug.org.uk" target="_blank">http://dundee.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/dundee" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/dundee</a><br>
Chat on IRC, #tlug on <a href="http://dundee.lug.org.uk" target="_blank">dundee.lug.org.uk</a><br></div></blockquote></div><br>
<br>_______________________________________________<br>
dundee GNU/Linux Users Group mailing list<br>
<a href="mailto:dundee@lists.lug.org.uk">dundee@lists.lug.org.uk</a> <a href="http://dundee.lug.org.uk" target="_blank">http://dundee.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/dundee" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/dundee</a><br>
Chat on IRC, #tlug on <a href="http://dundee.lug.org.uk" target="_blank">dundee.lug.org.uk</a><br></blockquote></div><br><br clear="all"><br>-- <br><br><br>Nick Walker<br>Vice President : The Linux Society<br>UAD Ethical Hacker<br>