Question: Just need the sed command lines for each part! Write a complete sed script called minori.sed that will modify the company's letters in the following

 Just need the sed command lines for each part! Write acomplete sed script called minori.sed that will modify the company's letters in

Just need the sed command lines for each part!

Write a complete sed script called minori.sed that will modify the company's letters in the following ways. Note that this letter is an example. Your program will be tested against several similar letters. Note that spacing may be different in each letter. 1. Preprocessing: a. Change the area code of the phone number in the heading to 800. b. Remove the parentheses from each phone number. C. Add a dash between the area code and the rest of the phone number. (i.e. 789 123-4567 would become 789-123-4567) d. Change the zip+4 code in the heading from 4321 to 1234. The zip+4 is the last 4 digits of the zip code after the dash. e. Change Lois' last name from Lane to Kent, since she became married. f. Change Lane in the addresses to Ln. 2. Transposition (i.e., rearrange the order of individual characters): a. Swap the area code and exchange for the phone number in the body of the letter. 3. Substitution (i.e., replace characters by other characters): a. Substitute # for '@' to correct a type where '@' were used instead of '#' and change ';' to ',' to correct the typos in the addresses. 4. Append extra data: a. Append a p.s. clause after the signature (the end of the letter). It should read ABC Corp 1234 7 Oaks Lane Denton; TX 76509-4321 (682) 543-7890 February 7th, 2021 Ms. Sue Jones 1515 Mockingbird Lane Apartment @ 701 Denton; TX 76509 Dear Mrs. Jones, This letter is to inform you that you have won the super coder contest. To Claim your winnings, you may visit our office or call ou claim hotline (654) 817-4321. Mention your claim number @687. Sincerely, Lois Lane Write a complete sed script called minori.sed that will modify the company's letters in the following ways. Note that this letter is an example. Your program will be tested against several similar letters. Note that spacing may be different in each letter. 1. Preprocessing: a. Change the area code of the phone number in the heading to 800. b. Remove the parentheses from each phone number. C. Add a dash between the area code and the rest of the phone number. (i.e. 789 123-4567 would become 789-123-4567) d. Change the zip+4 code in the heading from 4321 to 1234. The zip+4 is the last 4 digits of the zip code after the dash. e. Change Lois' last name from Lane to Kent, since she became married. f. Change Lane in the addresses to Ln. 2. Transposition (i.e., rearrange the order of individual characters): a. Swap the area code and exchange for the phone number in the body of the letter. 3. Substitution (i.e., replace characters by other characters): a. Substitute # for '@' to correct a type where '@' were used instead of '#' and change ';' to ',' to correct the typos in the addresses. 4. Append extra data: a. Append a p.s. clause after the signature (the end of the letter). It should read ABC Corp 1234 7 Oaks Lane Denton; TX 76509-4321 (682) 543-7890 February 7th, 2021 Ms. Sue Jones 1515 Mockingbird Lane Apartment @ 701 Denton; TX 76509 Dear Mrs. Jones, This letter is to inform you that you have won the super coder contest. To Claim your winnings, you may visit our office or call ou claim hotline (654) 817-4321. Mention your claim number @687. Sincerely, Lois Lane

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!