
# extracts useful fields from prep_ct

#257 > 1062 > COS > 232 > F05-06 > 2 > QR > CHM > 232 > CROSS LISTED > An
#Integrated, Quantitative Introduction to the Natural Sciences > CHM
#232/COS 232/MOL 232/PHY 232 > 009347
#258 > 1062 > MOL > 232 > F05-06 > 3 > QR > CHM > 232 > CROSS LISTED > An
#Integrated, Quantitative Introduction to the Natural Sciences > CHM
#232/COS 232/MOL 232/PHY 232 > 009347

#920     CHM     233     S06-07  ST      An Integrated, Quantitative Introduction
#		 to the Natural Sciences II     CHM 233/COS 233/MOL 233/PHY 233

awk '
BEGIN {
	FS = " *\t"
	OFS = "\t"
	id = 1
	clist_dept = 3
	clist_crs = 4
	term = 5
	area = 7
	dept = 8
	crsnumber = 9
	crstitle = 11
	xlists = 12
}

$term ~ /S09-10/ {
	print $id, $dept, $crsnumber, $term, $area, $crstitle, $xlists
}

' $*
