Question: 7 . Write a sed script to do the following, without using line numbers, except when referring to the first line: - Print the lines
Write a sed script to do the following, without using line numbers, except when referring to the first line:
Print the lines with continent info with:
the first semicolon ; changed to colon :
all commas removed from the numbers in the nd field
Remove the first line
Change each blank line to a line of equal signs
Your screen output should be:
Africa:;
Asia:;
Australia:;
Europe:;
North America:;
South America:;
To document step in your output file:
If you use the script utility to record your answer, there are steps:
Use the cat command to display your sed script
Then run the sed script to produce the output
If you dont use the script utility to record your answer, there are steps:
copy your sed script to the output file
run the sed script to produce the output
copy and paste both the sed command line and the output
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
