Table of Contents

Purpose

The purpose here is to mine the 2012 spring class schedule in html format and extract specific classes

Necessities

Process

Things

  * cat spring2012-20111103.html | grep "ddtitle" | sed 's/^<TH CLASS="ddtitle".*crn_in=.....">//g' | sed 's/<\/A.*$//g' | sed 's/^\(.*\) - \([0-9][0-9][0-9][0-9][0-9]\) - \(.*\) - \([0-9][0-9][0-9]\)$/\1: \3-\4:\2/g'
#!/bin/bash

echo -n "please enter a class: "

read class

cat combooutput1 | grep -A5 $class

Attributes

Final Thinkings