CSCI 211: Unix Lab
Homework 8
(Due April 4, 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 /lab8/quiz/prep.sh".

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

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

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

Problems:
Please save your changes to the corresponding file for each problem before checking out. You may copy the checkout output from the PuTTY window and paste it to this answer sheet.

1.	Enter your full name and ID at the first line of file 'p1'.
Checkout output:

2.	In file 'p2', change the 25th word to your last name and the 25th last word to your first name.
Checkout output:

3.	In file 'p3', go to the 3333th line, change "##### *****" to your full name, and go to the 6666th line, and change "@00000000" to your ID.
Checkout output:

4.	Delete 200 characters after the word "EXCITED" in file 'p4'.
Checkout output:

5.	In the file 'p5', find the word "GOLD", delete everything in the same line before the word.
Checkout output:

6.	In the file 'p6', find the word "GOLD", delete everything in the same line after the word.
Checkout output:

7.	Delete 20 lines after the line with the second instance of 'silver' in file 'p7'.
Checkout output:

8.	Delete everything before the line with the third instance of 'silver' in file 'p8'.
Checkout output:

9.	Delete everything after the line with the third instance of 'silver' in file 'p9'.
Checkout output:

10.	Duplicate the line starting with "overheads" in file 'p10'.
Checkout output:

11.	In file 'p11', copy 15 lines starting at the line with "Computer" as the first word, and paste them to the end of the file.
Checkout output:

12.	In file 'p12', copy 20 words starting at the word "rider", and paste them to the end of the same line.
Checkout output:

13.	In file 'p13', find the second word of "bronze", copy everything after the word in the same line, and paste them to the beginning of the same line.
Checkout output:

14.	In file 'p14', find the second word of "bronze", copy everything before the word in the same line, and paste them to the beginning of the file.
Checkout output:

15.	In file 'p15', replace all "bronze" with "platinum".
Checkout output:

16.	In file 'p16', replace all case insensitive "bronze" with "platinum" between the 10th and 50th line inclusively.
Checkout output: