Question: Write a complete sed script called minor 1 . sed that will modify the company s letters in the following ways. Note that this letter
Write a complete sed script called minorsed that will modify the companys
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.
Preprocessing:
a Change the area code of the phone number in the heading to
b Remove the parentheses from each phone number.
c Add a dash between the area code and the rest of the phone number. ie
would become
d Change the zip code in the heading from to The zip is the
last 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
Transposition ie rearrange the order of individual characters:
a Swap the area code and exchange for the phone number in the body of the
letter.
Substitution ie replace characters by other characters:
a Substitute # for @ to correct a type where @ were used instead of #
and c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
