#!/bin/bash
#
#
#
 
IFS=;for line in `cat coursedata`; do
        crn=`echo $line | sed 's/^.* - \(.....\) - .....*$/\1/g'`
                touch $crn
                echo $line >> $crn
done