Answered step by step
Verified Expert Solution
Question
1 Approved Answer
/ * 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started