Assignment Three
This assignment is to write a bash script to construct files from the file ncaa2007.data. Since the file is large use ncaa-test.data to "debug" before using the large file. The data files consists of lines in the following form:
year:winning team:winning team score:losing team:losing team score
for example:
1995:UCLA:95:FIU:56
1945:Kentucky:106:Florida
State:81
The
first file is to be constructed from the ncaa2007.data file by
removing the scores and named ncaa-no_score.data.
The file
ncaa-no_score.data must be of the form
year:winning team:losing team
for example
1995:UCLA:FIU
1945:Kentucky:Florida
State
The
second file is to be constructed from the ncaa-no_score.data file and
should contain all of the winning team names with a : before and
after the name each on a separate line. Name the file winners.
The
file winners must be of the form
:Winning Team:
for example
:UCLA:
:Kentucky:
The
third file is to be constructed from the ncaa-no_score.data file and
should contain all of the losing team names with a : before and after
the name each on a separate line. Name the file losers.
The
file losers must be of the form
:Losing Team:
for example
:FIU:
:Florida
State:
This assignment is due on October 3rd at the beginning of class. Hand in a printout containg the script.