All pastes #806904 Raw Edit

Untitled

public text v1 · immutable
·published 2007-12-06 00:32 UTC
rendered paste body
#!/bin/sh

# Script to download videos from UCB's course website. Requires mplayer

echo "Enter starting number (such as http://webcast.berkeley.edu/stream.php?type=real&webcastid=X , where x is the number) :"

read START

echo "Enter ending number (such as http://webcast.berkeley.edu/stream.php?type=real&webcastid=X , where x is the number) :"

read FIN

for i in $(seq $START 1 $FIN); do mplayer -dumpstream -dumpfile $i.rm $(wget -o/dev/null -O/dev/stdout 'http://webcast.berkeley.edu/stream.php?type=real&webcastid=$i')

done