CSC3320 Assignment 2 25 points due 2/18/02 Dr. Harrison Spring 2002
This assignment consists of three scripts. When complete it should be emailed to the GTA. His account is slp40@yamacraw.cs.gsu.edu.
Write the track and hunt scripts described in Glass and Ables excercises 1 and 2 on page 217.
(a real-world example). You are presented with the problem of preparing data for conversion into database input. The raw data are contained in a highly formatted, but not well ordered, file. Each line of the file contains a keyword as its first string. Write a csh script and awk program to sort these files into their parts. In particular each file is named something like "1abc.pdb" (where the 1abc varies between files), and the records (lines) that start with the strings "SEQRES", "ATOM", HEADER"and "HETATM" should be put into individual files (the strings are all capitalized). The script should take the name of the file and create the files <whatever the name is>.seq, <whatever the name is>.atom, <whatever the name is>.header, and <whatever the name is>.het (i.e. if supplied the name "1abc" it produces 1abc.seq, 1abc.atom, 1abc.header and 1abc.het). I'll place a couple of these files on my web site and in my directory on yamacraw (where you can read them. (/export/home/cscrwh)