===== nützliche Shell Skripte ===== ==== 31c3 ==== Download aller Videos des [[http://events.ccc.de/category/31c3/|31c3]] #!/bin/bash # MIRRORURL="http://cdn.media.ccc.de/congress/2014/h264-hd/" URLFILE="videos.url" INDEXFILE="index.html" echo -n "clean up old files ..." if [ -e $INDEXFILE ]; then rm $INDEXFILE fi if [ -e $URLFILE ]; then rm $URLFILE fi echo "done" echo "" echo -n "Downloading new \"index.html\" ..." wget -q $MIRRORURL echo "done" echo "" echo -n "extracting video urls..." grep -i video.png index.html | cut -d"\"" -f8 >> $URLFILE echo "done" echo "" echo "searching for new videos and completing partial downloaded videos..." while read line do wget -c -N $MIRRORURL/$line done <$URLFILE echo "done!" Nicht vergessen ''download_31c3_video_streams.sh'' mit ''chmod +x download_31c3_video_streams.sh'' auch ausführbar zu machen ;-) Die folgenden Zeilen erleichtern das Herunterladen und starten des Skriptes: wget -O download_31c3_video_streams.sh "http://www.von-thuelen.de/doku.php/projekte?do=export_code&codeblock=0" chmod +x download_31c3_video_streams.sh ./download_31c3_video_streams.sh