awk Exercise 1
Do lab 3 on pages 187 and 188. For questions 1 through 9, figure out the
correct awk commands and then copy those commands into a file
called
lastname_firstname_awk1.sh.
For example, if you were asked to print the names for all people whose last contribution ended in the digit 5, you would have this awk command:
awk -F ':' '/5$/{print $1}' lab3.data
and you would copy and paste that command into the file that you are creating.
Important! Please download the data file from this location. It is in UNIX file format and does not have trailing blanks at the end of some lines, as the file on the CD does.
The file for number 10 should be
placed into a file named lastname_firstname_facts.awk.
When you finish, put all the files into a single .zip file and mail it to the instructor. Please make sure that you put CIT052 in the subject line of your email.