<br><br><div class="gmail_quote">2009/3/11 Nicholas Walker <span dir="ltr">&lt;<a href="mailto:tel0seh@googlemail.com">tel0seh@googlemail.com</a>&gt;</span><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 &gt; dump.txt<br><br>then <br><br>cat dump.txt <br>
<p style="margin-bottom: 0in;">cat dump.txt | cut -d &#39;&quot;&#39; -f2 &gt; urls.txt<br></p><p style="margin-bottom: 0in;"></p></blockquote><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 &gt; cleanup1.txt<br><br>cat cleanup1.txt | cut -d&quot; &quot; -f1 &gt; cleanup2.txt<br><br>sed &#39;s/&quot;//g&#39; cleanup2.txt &gt; 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;"><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&lt; &quot;urls.txt&quot;<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>_______________________________________________<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>