CSCI 211: Unix Lab
Homework 9
(Due April 11, 2016, 23:59:59PM)

Note: 
1.	You must rely on UNIX commands only to solve the problems. No manipulation on Windows is allowed (such as scrolling the PuTTY screen). 
2.	A line of commands involving pipe ('|') or with ';' is not considered a single command.
3.	You must perform the check-in and check-out operation for each problem as specified below. Without that, no credit will be given.

Before doing the homework:

Run the command "source /lab9/quiz/prep.sh".

Before doing EACH problem:
Run the command "source /lab9/quiz/checkin.sh <n>", where <n> is the problem number.

After doing EACH problem:
Run the command "source /lab9/quiz/checkout.sh <n>", where <n> is the problem number. 

After finishing all the problems:
1.	Run the command "source /lab9/quiz/wrapup.sh". 
2.	Submit this file with your answers.
Save this file as yourlastname_yourfirstname_lab9.rtf and then submit online at http://www.networks.howard.edu/lij/courses/2016/211/

Problems:

1.	Write a bash script named "lab9.sh". The script should be invoked in the following way:
lab9.sh <file path>
(Configure the PATH environment variable so that you can run the script from ANYWHERE.)
When the script runs, it will do the following in order:
a)	Show the message "This script is authored by *****, Howard ID #####". Replace ***** with your full time, and ##### with your Howard ID.
b)	Show the message "Please enter a positive integer as column number:".
c)	Read the user input.
d)	Count the number of alphabetic words in the n-th column of the file. The path of the file is the string provided by the user in the command line and n is the number provided by in Step c).
e)	Show the message "There are x words in the n-th column of the file f.", where 'x', 'n' and 'f' should be replaced by corresponding numbers or string respectively.
f)	Count the number of integers in the n-th column of the file.
g)	Show the message "There are x integers in the n-th column of the file f.", where 'x', 'n' and 'f' should be replaced by corresponding numbers or string respectively.
h)	Exit.

2.	Run the script on the file 'for.test'. Save the output to file 'p2'. Also copy and paste the output below.
Command used:
Output: