Question: / * print the result * / printf ( The result is of , num 1 * num 2 ) ; / *
print the result
printfThe result is of
num num; this does it
does it work?
return ;
Answer:
b Consider the following file called phone.txt containing some DFW area phone
numbers, except that the area code ie the first three digits are backwards and do
not include the parentheses around the area code as follows:
Write a single sed script called minor sed that does the following:
Removes the phone number beginning with ie really the number with
the area code
Reverses the order of the three digits in the area code and adds the needed
parentheses around the area code.
Appends your phone number you can make one up if you want after the
number beginning with ie the last phone number in the file
In this file, for example, my sed script should print the following:
$ sedr f minorsed phone.txt
This sed script file will be submitted to Canvas.
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
