Skip to content

Instantly share code, notes, and snippets.

@jmarrama
jmarrama / getlectures.sh
Created January 21, 2012 00:58
140 script getter
#!/bin/bash
url_prefix="http://www.stanford.edu/~ouster/cgi-bin/cs140-winter12/";
wget http://www.stanford.edu/~ouster/cgi-bin/cs140-winter12/lectures.php
grep -o 'lecture.php?topic=[A-Za-z]*' lectures.php | uniq -u > uniqlecs
for lecfile in `cat uniqlecs`;
do
lec_url=$url_prefix$lecfile